@incodetech/web 2.1.0-rc.0 → 2.1.0-rc.2

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 (139) hide show
  1. package/dist/ae-signature/ae-signature.es.js +2 -2
  2. package/dist/antifraud/antifraud.es.js +3 -3
  3. package/dist/authentication/authentication.es.js +3 -3
  4. package/dist/{autoFocusTitle-BzkUiELM.js → autoFocusTitle-CuRu2lPg.js} +1 -1
  5. package/dist/base.css +13 -1
  6. package/dist/{bottomSheet-F1GJfQx_.js → bottomSheet-CnWbbUAM.js} +1 -1
  7. package/dist/{button-CM_hgyIP.js → button-Ch5-QgHB.js} +5 -1
  8. package/dist/certificate-issuance/certificate-issuance.es.js +249 -0
  9. package/dist/certificate-issuance/styles.css +114 -0
  10. package/dist/{checkbox-BoeLHKgp.js → checkbox-1wUHSoaK.js} +2 -2
  11. package/dist/consent/consent.es.js +10 -10
  12. package/dist/{countrySelector-mSWyHSy4.js → countrySelector-B4WuNUya.js} +2 -2
  13. package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
  14. package/dist/cpfOcr-BJOYoITy.js +2 -0
  15. package/dist/{cpfOcr-MtpRztkG.js → cpfOcr-liTE9e70.js} +6 -6
  16. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
  17. package/dist/curp-validation/curp-validation.es.js +16 -16
  18. package/dist/{customFields-DXXt9HGM.js → customFields-BQ4scZfL.js} +10 -10
  19. package/dist/{customWatchlist-DsW04UF6.js → customWatchlist-7s0_wGtE.js} +5 -5
  20. package/dist/dateInputComposed-DRzZi6uy.js +1 -0
  21. package/dist/{dateInputComposed-C_mh4XBg.js → dateInputComposed-DuaofcBl.js} +3 -3
  22. package/dist/document-capture/document-capture.es.js +1 -1
  23. package/dist/documentCapture-3RHCHepT.js +2 -0
  24. package/dist/{documentCapture-BDV_921m.js → documentCapture-CwoSD_Iq.js} +12 -12
  25. package/dist/dropdownComposed-BAoxIIsE.js +1 -0
  26. package/dist/{dropdownComposed-_fgAlo_C.js → dropdownComposed-CoU0enG6.js} +9 -10
  27. package/dist/{dynamicForms-DyfnsS7E.js → dynamicForms-DvTU65bW.js} +12 -12
  28. package/dist/ekyb/ekyb.es.js +1 -1
  29. package/dist/ekybModule-BkVQBQvW.js +2 -0
  30. package/dist/{ekybModule-CIPGmCvD.js → ekybModule-CwZvxios.js} +14 -14
  31. package/dist/ekyc/ekyc.es.js +1 -1
  32. package/dist/ekycModule-BIbj7hr1.js +2 -0
  33. package/dist/{ekycModule-BuTaC5ct.js → ekycModule-jkXByPXe.js} +13 -13
  34. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  35. package/dist/{electronic-signature-B-Q7M0wK.js → electronic-signature-h1sAGg7l.js} +11 -11
  36. package/dist/email/email.es.js +7 -7
  37. package/dist/{emailInput-KZmhjOdZ.js → emailInput-BRMJMJV6.js} +3 -3
  38. package/dist/{expiredId-Q1t6aVpk.js → expiredId-D17oN5K2.js} +4 -4
  39. package/dist/{extensibility-Cs3KQQdC.js → extensibility-CTmAsaji.js} +41 -41
  40. package/dist/extensibility.es.js +22 -22
  41. package/dist/face-match/face-match.es.js +1 -1
  42. package/dist/faceMatch-C0-RPzrc.js +2 -0
  43. package/dist/{faceMatch--RDHJe4t.js → faceMatch-Dez_bq3n.js} +8 -8
  44. package/dist/field-comparison/field-comparison.es.js +1 -1
  45. package/dist/fieldComparison-7FUznk_9.js +2 -0
  46. package/dist/{fieldComparison-CAF86bTC.js → fieldComparison-BelzSC48.js} +8 -8
  47. package/dist/fiscal-qr/fiscal-qr.es.js +7 -7
  48. package/dist/flow/flow.es.js +19 -9
  49. package/dist/flow/styles.css +173 -12
  50. package/dist/geolocation/geolocation.es.js +181 -322
  51. package/dist/geolocation/styles.css +8 -0
  52. package/dist/governmentValidation/governmentValidation.es.js +8 -8
  53. package/dist/{homeScreen-BZnIEDrV.js → homeScreen-BIdVm9KA.js} +5 -5
  54. package/dist/{i18n-CoCO2ZuN.js → i18n-DoP1NB7u.js} +1 -1
  55. package/dist/{icons-Dbs9ZfYM.js → icons-CJJbIpBq.js} +2 -2
  56. package/dist/id/id.es.js +21 -21
  57. package/dist/id-verification/id-verification.es.js +4 -4
  58. package/dist/{idOcr-CjGbb4dB.js → idOcr-C4K2XVJr.js} +11 -11
  59. package/dist/identity-reuse/identity-reuse.es.js +6 -6
  60. package/dist/{incodeComponent-wfnHlnXx.js → incodeComponent-Cmi1rlWs.js} +2 -1
  61. package/dist/{incodeModule-BUDoTwT9.js → incodeModule-M8DszCee.js} +1 -1
  62. package/dist/index.es.js +4 -3
  63. package/dist/inputComposed-BaY5q9WM.js +1 -0
  64. package/dist/{inputComposed-CQ4AsvZg.js → inputComposed-C1R2LAa3.js} +3 -3
  65. package/dist/{mandatoryConsent-r0PQHmv-.js → mandatoryConsent-DOQ0DKgM.js} +9 -9
  66. package/dist/{modal-nTSaG7nB.js → modal-OxkFuuiR.js} +2 -2
  67. package/dist/{optionAccessibleLabel-CnA-mNAU.js → optionAccessibleLabel-_nvVCTSL.js} +4 -4
  68. package/dist/{otpInput-_JmtVwa0.js → otpInput-Q_kzSZeD.js} +4 -4
  69. package/dist/{verifiedByIncode-DjXOdCml.js → page-DidH_RkX.js} +70 -2
  70. package/dist/{pdf-BZA70WbM.js → pdf-BMUXKJuC.js} +1 -1
  71. package/dist/{pdfViewer-BK-yVIve.js → pdfViewer-BewML6eg.js} +2 -2
  72. package/dist/phone/phone.es.js +8 -8
  73. package/dist/{phoneInputComposed-DjNdsmPE.js → phoneInputComposed-DMiXfF-1.js} +5 -5
  74. package/dist/{processing-BM-wT-1W.js → processing-Boki1Z8j.js} +1 -1
  75. package/dist/qe-signature/qe-signature.es.js +2 -2
  76. package/dist/{radioGroupComposed-BNuaopVr.js → radioGroupComposed-TuAWUAFK.js} +4 -4
  77. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +28 -23
  78. package/dist/redirect-to-mobile/styles.css +1 -0
  79. package/dist/{richText-Cf9aMOCk.js → richText-DsTP4H3j.js} +1 -1
  80. package/dist/selfie/selfie.es.js +6 -6
  81. package/dist/signature/signature.es.js +8 -8
  82. package/dist/{spinner-D8a_2LvW.js → spinner-BRNNKqPN.js} +10 -4
  83. package/dist/spinner-zRaUjXtH.js +1 -0
  84. package/dist/{statusPage-DMYPUwRZ.js → statusPage-BUm5gtQY.js} +2 -2
  85. package/dist/themes/dark.css +8 -2
  86. package/dist/themes/light.css +8 -2
  87. package/dist/{transitionSpinner-DRRz-NV8.js → transitionSpinner-4rPkt-KM.js} +8 -5
  88. package/dist/{tutorial-D1qaY2Tm.js → tutorial-Cap8qKvM.js} +13 -13
  89. package/dist/types/certificate-issuance.d.ts +46 -0
  90. package/dist/types/extensibility.d.ts +1 -1
  91. package/dist/types/index.d.ts +7 -1
  92. package/dist/{useModuleLoader-CeJ2jL25.js → useModuleLoader-Kt78XfNR.js} +21 -19
  93. package/dist/{verificationResult-Do5SpZ6X.js → verificationResult-B6PBXbp9.js} +8 -8
  94. package/dist/watchlist/watchlist.es.js +5 -5
  95. package/dist/{watchlistForBusiness-BFFXC9d-.js → watchlistForBusiness-DCKlKG81.js} +9 -9
  96. package/dist/workflow/styles.css +106 -0
  97. package/dist/workflow/workflow.es.js +143 -10
  98. package/package.json +15 -5
  99. package/dist/cpfOcr-jJkYCfsX.js +0 -2
  100. package/dist/dateInputComposed-Cy6a7ymh.js +0 -1
  101. package/dist/documentCapture-8ypBJehw.js +0 -2
  102. package/dist/dropdownComposed-CEWBSdGl.js +0 -1
  103. package/dist/ekybModule-DFoYpheB.js +0 -2
  104. package/dist/ekycModule-BGzwgjl1.js +0 -2
  105. package/dist/faceMatch-yEKPYaym.js +0 -2
  106. package/dist/fieldComparison-D0an7T_g.js +0 -2
  107. package/dist/inputComposed-BEn7_nZd.js +0 -1
  108. package/dist/page-DxGQj7Gk.js +0 -71
  109. package/dist/spinner-B6RxGFrI.js +0 -1
  110. /package/dist/{aligndevicelottie-DY_bX_p8.js → aligndevicelottie-DMXPhIDs.js} +0 -0
  111. /package/dist/{back-horizontal-hint-D_8LptLm.js → back-horizontal-hint-DNIIDrEW.js} +0 -0
  112. /package/dist/{back-tutorial-vb1MxlrT.js → back-tutorial-B8JJSJBB.js} +0 -0
  113. /package/dist/{back-vertical-hint-C1evxxq2.js → back-vertical-hint-CW6ZS7bP.js} +0 -0
  114. /package/dist/{backdevicelottie-HypPqBz7.js → backdevicelottie-By75Bznp.js} +0 -0
  115. /package/dist/{blurdevicelottie-CBXtBFiJ.js → blurdevicelottie-C_9VAHkM.js} +0 -0
  116. /package/dist/{browser-ponyfill-CLLvZCVg.js → browser-ponyfill-C_DpU0lQ.js} +0 -0
  117. /package/dist/{defineProperty-mefzVtTv.js → defineProperty-CTu-cLWm.js} +0 -0
  118. /package/dist/{errorIcon-DJRZpd8j.js → errorIcon-BA4T6iy-.js} +0 -0
  119. /package/dist/{flip-animation-BGRvygw9.js → flip-animation-st9bra1p.js} +0 -0
  120. /package/dist/{front-horizontal-hint-Uf5bHCsd.js → front-horizontal-hint-DvME-aVk.js} +0 -0
  121. /package/dist/{front-vertical-hint-DdWNA45v.js → front-vertical-hint-BUG1VMsP.js} +0 -0
  122. /package/dist/{frontdevicelottie-CLqitJhG.js → frontdevicelottie-uObOEs8p.js} +0 -0
  123. /package/dist/{glaredevicelottie-BS04U6Fc.js → glaredevicelottie-CsfIgqIc.js} +0 -0
  124. /package/dist/{id-laser-h-DX8UbVNH.js → id-laser-h-BvVSaLyU.js} +0 -0
  125. /package/dist/{id-laser-v-DhnHdjlB.js → id-laser-v-Dj_RN_s9.js} +0 -0
  126. /package/dist/{id-tutorial-lj4iKtYT.js → id-tutorial-BOOsXlAJ.js} +0 -0
  127. /package/dist/{lottie_light-Dp9Bz3mf.js → lottie_light-BG-RL2Iu.js} +0 -0
  128. /package/dist/{modal.hooks-D2xhIuHA.js → modal.hooks-ZrzmHAUa.js} +0 -0
  129. /package/dist/{numberedStep-CEtwZqLp.js → numberedStep-Dc0BUU-j.js} +0 -0
  130. /package/dist/{passport-horizontal-hint-Bbm2mvSn.js → passport-horizontal-hint-BhpVt73n.js} +0 -0
  131. /package/dist/{passport-tutorial-zT1ZoA-D.js → passport-tutorial-CeSup6m9.js} +0 -0
  132. /package/dist/{passport-vertical-hint-DJbCtBiM.js → passport-vertical-hint-CVRBnZXS.js} +0 -0
  133. /package/dist/{registerIncodeElement-77NGCDsy.js → registerIncodeElement-CdlNRRv5.js} +0 -0
  134. /package/dist/{requiredLabelHint-DEadtiwx.js → requiredLabelHint-DX3oVNtu.js} +0 -0
  135. /package/dist/{selfieTutorial-CtruLyO2.js → selfieTutorial-CYa8bq6B.js} +0 -0
  136. /package/dist/{snackbar-CxepGC3e.js → snackbar-CGL6gp9u.js} +0 -0
  137. /package/dist/{successIcon-BAyDPT7I.js → successIcon-B5mGvdx1.js} +0 -0
  138. /package/dist/{tabs-C8npVBbk.js → tabs-DUkWjBGk.js} +0 -0
  139. /package/dist/{typography-YLgHHuao.js → typography-BZIpjo97.js} +0 -0
@@ -1,15 +1,15 @@
1
- import { n as useTranslation } from "./i18n-CoCO2ZuN.js";
1
+ import { n as useTranslation } from "./i18n-DoP1NB7u.js";
2
2
  import { _ as y, v as u } from "./vendor-preact-DThS2ZQ_.js";
3
3
  import { c as useManager, o as useModuleTerminalCallbacks } from "./hooks-Da_yP_Dr.js";
4
- import { t as IncodeComponent } from "./incodeComponent-wfnHlnXx.js";
4
+ import { t as IncodeComponent } from "./incodeComponent-Cmi1rlWs.js";
5
5
  import { t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
6
- import { t as Page } from "./page-DxGQj7Gk.js";
7
- import { t as Button } from "./button-CM_hgyIP.js";
8
- import { t as SuccessIcon } from "./successIcon-BAyDPT7I.js";
9
- import { t as InputComposed } from "./inputComposed-CQ4AsvZg.js";
10
- import { t as registerIncodeModuleElement } from "./incodeModule-BUDoTwT9.js";
11
- import { t as CountrySelector } from "./countrySelector-mSWyHSy4.js";
12
- import { t as StatusPage } from "./statusPage-DMYPUwRZ.js";
6
+ import { t as Page } from "./page-DidH_RkX.js";
7
+ import { t as Button } from "./button-Ch5-QgHB.js";
8
+ import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
9
+ import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
10
+ import { t as registerIncodeModuleElement } from "./incodeModule-M8DszCee.js";
11
+ import { t as CountrySelector } from "./countrySelector-B4WuNUya.js";
12
+ import { t as StatusPage } from "./statusPage-BUm5gtQY.js";
13
13
  import { createWatchlistForBusinessManager } from "@incodetech/core/watchlist-for-business";
14
14
  //#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
15
15
  var WatchlistForBusinessContent = ({ onFinish }) => {
@@ -2925,6 +2925,51 @@
2925
2925
  }
2926
2926
  }
2927
2927
 
2928
+ @media (min-width: 40rem) {
2929
+ .incode-container {
2930
+ max-width: 40rem;
2931
+ }
2932
+ }
2933
+
2934
+ @media (min-width: 48rem) {
2935
+ .incode-container {
2936
+ max-width: 48rem;
2937
+ }
2938
+ }
2939
+
2940
+ @media (min-width: 64rem) {
2941
+ .incode-container {
2942
+ max-width: 64rem;
2943
+ }
2944
+ }
2945
+
2946
+ @media (min-width: 80rem) {
2947
+ .incode-container {
2948
+ max-width: 80rem;
2949
+ }
2950
+ }
2951
+
2952
+ @media (min-width: 96rem) {
2953
+ .incode-container {
2954
+ max-width: 96rem;
2955
+ }
2956
+ }
2957
+
2958
+ @media (min-width: 48rem) {
2959
+ .incode-container {
2960
+ max-height: var(--incode-page-max-h);
2961
+ max-width: var(--incode-page-max-w);
2962
+ }
2963
+
2964
+ @media not all and (min-width: 80rem) {
2965
+ @media (orientation: landscape) {
2966
+ .incode-container {
2967
+ max-height: var(--incode-page-max-h-landscape);
2968
+ }
2969
+ }
2970
+ }
2971
+ }
2972
+
2928
2973
  .incode-container {
2929
2974
  width: 100%;
2930
2975
  }
@@ -3417,6 +3462,11 @@
3417
3462
  font-weight: var(--typography-button-m-underlined-weight);
3418
3463
  line-height: var(--typography-button-m-underlined-line-height);
3419
3464
  letter-spacing: var(--typography-button-m-underlined-letter-spacing);
3465
+ font-family: var(--typography-button-family);
3466
+ font-size: var(--typography-button-m-underlined-size);
3467
+ font-weight: var(--typography-button-m-underlined-weight);
3468
+ line-height: var(--typography-button-m-underlined-line-height);
3469
+ letter-spacing: var(--typography-button-m-underlined-letter-spacing);
3420
3470
  text-decoration-line: underline;
3421
3471
  text-decoration-style: solid;
3422
3472
  text-decoration-thickness: auto;
@@ -5979,10 +6029,18 @@
5979
6029
  padding-block: var(--spacing-16, var(--spacing-16, 16px));
5980
6030
  }
5981
6031
 
6032
+ .IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageInner {
6033
+ max-width: 420px;
6034
+ }
6035
+
5982
6036
  .IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageTitleContainer {
5983
6037
  margin: var(--spacing-0, var(--spacing-none, 0px));
5984
6038
  }
5985
6039
 
6040
+ .IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageTitle {
6041
+ text-align: left;
6042
+ }
6043
+
5986
6044
  .IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionSections {
5987
6045
  margin-top: var(--spacing-24, var(--spacing-24, 24px));
5988
6046
  gap: var(--spacing-24, var(--spacing-24, 24px));
@@ -6448,6 +6506,7 @@
6448
6506
  width: 100%;
6449
6507
  max-width: var(--redirect-form-column-max-width);
6450
6508
  flex-direction: column;
6509
+ flex: 1;
6451
6510
  display: flex;
6452
6511
  }
6453
6512
 
@@ -7270,6 +7329,53 @@
7270
7329
  margin-top: var(--spacing-8, var(--spacing-8, 8px));
7271
7330
  }
7272
7331
 
7332
+ .IncodeFinishScreenBySessionStatus .IncodePageContent {
7333
+ flex-direction: column;
7334
+ flex: 1;
7335
+ display: flex;
7336
+ }
7337
+
7338
+ .IncodeFinishScreenBySessionStatus .IncodeFinishScreenStatus {
7339
+ text-align: center;
7340
+ justify-content: center;
7341
+ align-items: center;
7342
+ gap: var(--spacing-16, var(--spacing-16, 16px));
7343
+ width: 100%;
7344
+ padding: var(--spacing-24, var(--spacing-24, 24px));
7345
+ flex-direction: column;
7346
+ flex: 1;
7347
+ display: flex;
7348
+ }
7349
+
7350
+ .IncodeFinishScreenBySessionStatus .IncodeFinishScreenTitleGroup {
7351
+ align-items: center;
7352
+ gap: var(--spacing-4, var(--spacing-4, 4px));
7353
+ flex-direction: column;
7354
+ display: flex;
7355
+ }
7356
+
7357
+ .IncodeFinishScreenBySessionStatus .IncodeFinishScreenTitle, .IncodeFinishScreenBySessionStatus .IncodeFinishScreenSubtitle {
7358
+ font-family: var(--typography-headline-family);
7359
+ font-size: var(--typography-headline-h2-size);
7360
+ font-weight: var(--typography-headline-h2-weight);
7361
+ line-height: var(--typography-headline-h2-line-height);
7362
+ letter-spacing: var(--typography-headline-h2-letter-spacing);
7363
+ color: var(--color-text-body-primary, var(--text-body-800-primary));
7364
+ --tw-outline-style: none;
7365
+ outline-style: none;
7366
+ }
7367
+
7368
+ .IncodeFinishScreenBySessionStatus .IncodeFinishScreenDescription {
7369
+ font-family: var(--typography-headline-family);
7370
+ font-size: var(--typography-headline-h5-size);
7371
+ font-weight: var(--typography-headline-h5-weight);
7372
+ line-height: var(--typography-headline-h5-line-height);
7373
+ letter-spacing: var(--typography-headline-h5-letter-spacing);
7374
+ color: var(--color-text-body-secondary, var(--text-body-500-secondary));
7375
+ overflow-wrap: break-word;
7376
+ max-width: var(--incode-form-max-w);
7377
+ }
7378
+
7273
7379
  .IncodeWorkflow {
7274
7380
  width: 100%;
7275
7381
  height: 100%;
@@ -1,15 +1,135 @@
1
- import { n as useTranslation, o as readStoredLanguage } from "../i18n-CoCO2ZuN.js";
1
+ import { n as useTranslation, o as readStoredLanguage } from "../i18n-DoP1NB7u.js";
2
2
  import { _ as y, c as z, l as A, o as P, p as d, v as u } from "../vendor-preact-DThS2ZQ_.js";
3
3
  import { t as setUiConfig } from "../uiConfig-D2_wawvr.js";
4
4
  import { c as useManager } from "../hooks-Da_yP_Dr.js";
5
- import { t as IncodeComponent } from "../incodeComponent-wfnHlnXx.js";
6
- import { t as TransitionSpinner } from "../transitionSpinner-DRRz-NV8.js";
7
- import { t as registerIncodeModuleElement } from "../incodeModule-BUDoTwT9.js";
8
- import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as fetchAndApplyTheme, y as TerminalErrorPage } from "../useModuleLoader-CeJ2jL25.js";
5
+ import { t as IncodeComponent } from "../incodeComponent-Cmi1rlWs.js";
6
+ import { t as Page } from "../page-DidH_RkX.js";
7
+ import { t as TransitionSpinner } from "../transitionSpinner-4rPkt-KM.js";
8
+ import { t as AutoFocusTitle } from "../autoFocusTitle-CuRu2lPg.js";
9
+ import { t as registerIncodeModuleElement } from "../incodeModule-M8DszCee.js";
10
+ import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as fetchAndApplyTheme, y as TerminalErrorPage } from "../useModuleLoader-Kt78XfNR.js";
9
11
  import { resolveWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
10
12
  import { getDeviceClass } from "@incodetech/core/device";
13
+ import { classifyScoreStatus, getTotalScoreStatus } from "@incodetech/core/flow";
11
14
  import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
12
15
  import { createWorkflowManager } from "@incodetech/core/workflow";
16
+ //#region src/modules/workflow/finishScreenStatusIcons.tsx
17
+ var FinishStatusSuccessIcon = () => /* @__PURE__ */ u("svg", {
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ width: "54",
20
+ height: "54",
21
+ viewBox: "0 0 54 54",
22
+ fill: "none",
23
+ class: "IncodeFinishStatusSuccessIcon",
24
+ "aria-hidden": "true",
25
+ focusable: "false",
26
+ children: [/* @__PURE__ */ u("path", {
27
+ d: "M27 53.25C41.4975 53.25 53.25 41.4975 53.25 27C53.25 12.5025 41.4975 0.75 27 0.75C12.5025 0.75 0.75 12.5025 0.75 27C0.75 41.4975 12.5025 53.25 27 53.25Z",
28
+ fill: "#0CD5A2"
29
+ }), /* @__PURE__ */ u("path", {
30
+ d: "M37.5 20L23.492 35.75L16.5 27.875",
31
+ stroke: "white",
32
+ "stroke-width": "4",
33
+ "stroke-linecap": "round",
34
+ "stroke-linejoin": "round"
35
+ })]
36
+ });
37
+ var FinishStatusReviewIcon = () => /* @__PURE__ */ u("svg", {
38
+ xmlns: "http://www.w3.org/2000/svg",
39
+ width: "56",
40
+ height: "54",
41
+ viewBox: "0 0 33 32",
42
+ fill: "none",
43
+ class: "IncodeFinishStatusReviewIcon",
44
+ "aria-hidden": "true",
45
+ focusable: "false",
46
+ children: /* @__PURE__ */ u("path", {
47
+ d: "M16.5 0C25.348 0 32.5 7.1696 32.5 16C32.5 24.8336 25.348 32 16.5 32C7.668 32 0.5 24.8336 0.5 16C0.5 7.1696 7.668 0 16.5 0ZM16.5 20.6896C15.732 20.6896 15.108 21.3136 15.108 22.0816C15.108 22.8496 15.732 23.4896 16.516 23.4896C17.284 23.4896 17.908 22.8496 17.908 22.0816C17.908 21.3136 17.284 20.6896 16.5 20.6896ZM16.5 8.528C15.732 8.528 15.092 9.1696 15.092 9.936V17.008C15.092 17.7776 15.732 18.4 16.5 18.4C17.268 18.4 17.892 17.7776 17.892 17.008V9.936C17.892 9.1696 17.268 8.528 16.5 8.528Z",
48
+ fill: "#FF9900"
49
+ })
50
+ });
51
+ var FinishStatusErrorIcon = () => /* @__PURE__ */ u("svg", {
52
+ xmlns: "http://www.w3.org/2000/svg",
53
+ width: "72",
54
+ height: "72",
55
+ viewBox: "0 0 72 72",
56
+ fill: "none",
57
+ class: "IncodeFinishStatusErrorIcon",
58
+ "aria-hidden": "true",
59
+ focusable: "false",
60
+ children: /* @__PURE__ */ u("path", {
61
+ "fill-rule": "evenodd",
62
+ "clip-rule": "evenodd",
63
+ d: "M44.598 44.592C44.16 45.03 43.584 45.252 43.008 45.252C42.429 45.252 41.856 45.03 41.415 44.592L35.997 39.171L30.594 44.574C29.715 45.453 28.29 45.453 27.411 44.574C26.535 43.695 26.535 42.273 27.411 41.394L32.814 35.991L27.408 30.582C26.529 29.703 26.529 28.281 27.408 27.402C28.287 26.523 29.709 26.523 30.588 27.402L35.994 32.808L41.4 27.405C42.279 26.526 43.701 26.526 44.58 27.405C45.459 28.281 45.459 29.706 44.58 30.585L39.177 35.991L44.598 41.409C45.477 42.288 45.477 43.713 44.598 44.592ZM36 7.5C20.286 7.5 7.5 20.283 7.5 36C7.5 51.714 20.286 64.5 36 64.5C51.714 64.5 64.5 51.714 64.5 36C64.5 20.283 51.714 7.5 36 7.5Z",
64
+ fill: "#FF0000"
65
+ })
66
+ });
67
+ //#endregion
68
+ //#region src/modules/workflow/finishScreenBySessionStatus.tsx
69
+ var VARIANT_CONTENT = {
70
+ success: {
71
+ Icon: FinishStatusSuccessIcon,
72
+ titleKey: "finishScreenBySessionStatus.success.title",
73
+ titleDefault: "Identity",
74
+ subtitleKey: "finishScreenBySessionStatus.success.subtitle",
75
+ subtitleDefault: "successfully verified"
76
+ },
77
+ error: {
78
+ Icon: FinishStatusErrorIcon,
79
+ titleKey: "finishScreenBySessionStatus.error.title",
80
+ titleDefault: "Unable to verify identity",
81
+ descriptionKey: "finishScreenBySessionStatus.error.description",
82
+ descriptionDefault: "We encountered an issue while processing your request. Please try again later."
83
+ },
84
+ review: {
85
+ Icon: FinishStatusReviewIcon,
86
+ titleKey: "finishScreenBySessionStatus.review.title",
87
+ titleDefault: "Verification under review",
88
+ descriptionKey: "finishScreenBySessionStatus.review.description",
89
+ descriptionDefault: "Your information did not match our records. Please contact IT support for assistance."
90
+ }
91
+ };
92
+ /** Status-specific workflow completion screen (success / error / review). */
93
+ var FinishScreenBySessionStatus = ({ scoreStatus, isDesktop }) => {
94
+ const { t } = useTranslation();
95
+ const [variant, setVariant] = d(() => classifyScoreStatus(scoreStatus));
96
+ y(() => {
97
+ if (!isDesktop) return;
98
+ const controller = new AbortController();
99
+ getTotalScoreStatus(controller.signal).then((total) => setVariant(classifyScoreStatus(total))).catch(() => {});
100
+ return () => controller.abort();
101
+ }, [isDesktop]);
102
+ const content = VARIANT_CONTENT[variant];
103
+ const { Icon } = content;
104
+ return /* @__PURE__ */ u(Page, {
105
+ className: "IncodeFinishScreenBySessionStatus",
106
+ "data-testid": "finish-screen-by-session-status",
107
+ hideHeader: true,
108
+ hideFooterBranding: true,
109
+ children: /* @__PURE__ */ u("div", {
110
+ class: "IncodeFinishScreenStatus",
111
+ "data-variant": variant,
112
+ children: [
113
+ /* @__PURE__ */ u(Icon, {}),
114
+ /* @__PURE__ */ u("div", {
115
+ class: "IncodeFinishScreenTitleGroup",
116
+ children: [/* @__PURE__ */ u(AutoFocusTitle, {
117
+ className: "IncodeFinishScreenTitle",
118
+ children: t(content.titleKey, { defaultValue: content.titleDefault })
119
+ }, variant), content.subtitleKey ? /* @__PURE__ */ u("p", {
120
+ class: "IncodeFinishScreenSubtitle",
121
+ children: t(content.subtitleKey, { defaultValue: content.subtitleDefault })
122
+ }) : null]
123
+ }),
124
+ content.descriptionKey ? /* @__PURE__ */ u("p", {
125
+ class: "IncodeFinishScreenDescription",
126
+ children: t(content.descriptionKey, { defaultValue: content.descriptionDefault })
127
+ }) : null
128
+ ]
129
+ })
130
+ });
131
+ };
132
+ //#endregion
13
133
  //#region src/modules/workflow/workflowInit.ts
14
134
  var LAZY_WORKFLOW_MODULES = {
15
135
  ...LAZY_UI_MODULES,
@@ -149,7 +269,7 @@ function useWorkflowInitialization(options) {
149
269
  }
150
270
  //#endregion
151
271
  //#region src/modules/workflow/workflow.tsx
152
- var LazyHomeScreen = z(() => import("../homeScreen-BZnIEDrV.js").then((module) => ({ default: module.HomeScreen })));
272
+ var LazyHomeScreen = z(() => import("../homeScreen-BIdVm9KA.js").then((module) => ({ default: module.HomeScreen })));
153
273
  function mapModuleConfig(options) {
154
274
  const { moduleKey, config, workflowId, authHint, lang, mergeSessionRecordings, ageAssurance } = options;
155
275
  switch (moduleKey) {
@@ -225,8 +345,8 @@ var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish,
225
345
  }
226
346
  if (workflowState?.status === "error" && onError) {
227
347
  terminalFiredRef.current = true;
228
- const { error, errorCode } = workflowState;
229
- queueMicrotask(() => onError(error, errorCode));
348
+ const { error, errorCode, moduleErrorCode } = workflowState;
349
+ queueMicrotask(() => onError(error, errorCode, moduleErrorCode));
230
350
  }
231
351
  }, [
232
352
  workflowState?.status,
@@ -260,7 +380,17 @@ var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish,
260
380
  class: "IncodeWorkflow",
261
381
  children: /* @__PURE__ */ u(TerminalErrorPage, { message: workflowState.error })
262
382
  });
263
- if (workflowState.status === "finished" || workflowState.status === "asyncResolution" || workflowState.status === "closed") return null;
383
+ if (workflowState.status === "finished") {
384
+ if (workflowState.workflowConfig.showFinishScreenBySessionStatus) return /* @__PURE__ */ u("div", {
385
+ class: "IncodeWorkflow",
386
+ children: /* @__PURE__ */ u(FinishScreenBySessionStatus, {
387
+ scoreStatus: workflowState.finishStatus.scoreStatus,
388
+ isDesktop: config.isDesktop
389
+ })
390
+ });
391
+ return null;
392
+ }
393
+ if (workflowState.status === "asyncResolution" || workflowState.status === "closed") return null;
264
394
  if (moduleLoaderState.status === "unsupported") return /* @__PURE__ */ u("div", {
265
395
  class: "IncodeWorkflow",
266
396
  children: /* @__PURE__ */ u(UnsupportedModule, {
@@ -280,7 +410,10 @@ var IncodeWorkflowReady = ({ config, workflowManager: initialManager, onFinish,
280
410
  ageAssurance: workflowState.workflowConfig.ageAssurance
281
411
  });
282
412
  let extraProps = {};
283
- if (workflowState.currentNode.moduleKey === "REDIRECT_TO_MOBILE") extraProps = { onContinue: () => workflowManager.completeModule() };
413
+ if (workflowState.currentNode.moduleKey === "REDIRECT_TO_MOBILE") extraProps = {
414
+ onFinish: () => workflowManager.finishWorkflow(),
415
+ onContinue: () => workflowManager.completeModule()
416
+ };
284
417
  return /* @__PURE__ */ u("div", {
285
418
  class: "IncodeWorkflow",
286
419
  children: /* @__PURE__ */ u(Component, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "2.1.0-rc.0",
3
+ "version": "2.1.0-rc.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -233,6 +233,15 @@
233
233
  "source": "./src/modules/cross-document-data-match/cross-document-data-match.tsx",
234
234
  "types": "./dist/types/cross-document-data-match.d.ts",
235
235
  "import": "./dist/cross-document-data-match/cross-document-data-match.es.js"
236
+ },
237
+ "./certificate-issuance": {
238
+ "source": "./src/modules/certificate-issuance/certificate-issuance.tsx",
239
+ "types": "./dist/types/certificate-issuance.d.ts",
240
+ "import": "./dist/certificate-issuance/certificate-issuance.es.js"
241
+ },
242
+ "./certificate-issuance/styles.css": {
243
+ "source": "./src/modules/certificate-issuance/styles.css",
244
+ "default": "./dist/certificate-issuance/styles.css"
236
245
  }
237
246
  },
238
247
  "files": [
@@ -255,7 +264,7 @@
255
264
  "qrcode": "^1.5.4",
256
265
  "signature_pad": "^5.1.3",
257
266
  "tailwindcss": "^4.1.17",
258
- "@incodetech/core": "2.1.0-rc.0"
267
+ "@incodetech/core": "2.1.0-rc.2"
259
268
  },
260
269
  "devDependencies": {
261
270
  "@microsoft/api-extractor": "^7.53.3",
@@ -295,9 +304,10 @@
295
304
  "build:cdn": "rm -rf dist && NODE_OPTIONS=--experimental-strip-types BUILD_TARGET=cdn vite build",
296
305
  "build:dev": "NODE_ENV=development vite build",
297
306
  "build:analyze": "rm -rf dist && ANALYZE=1 vite build && echo '\\nBundle report: packages/ui/dist/stats.html\\n'",
298
- "test": "vitest run",
299
- "test:a11y": "VITE_STORYBOOK_A11Y=true vitest run",
300
- "coverage": "vitest run --coverage",
307
+ "test": "vitest run --project=unit",
308
+ "test:storybook": "vitest run --project=storybook",
309
+ "test:a11y": "VITE_STORYBOOK_A11Y=true vitest run --project=storybook",
310
+ "coverage": "vitest run --project=unit --coverage",
301
311
  "lint": "eslint . && pnpm lint:styles",
302
312
  "lint:fix": "eslint . --fix && pnpm lint:styles",
303
313
  "lint:styles": "stylelint \"src/**/*.css\"",
@@ -1,2 +0,0 @@
1
- import { t as CpfOcr } from "./cpfOcr-MtpRztkG.js";
2
- export { CpfOcr };
@@ -1 +0,0 @@
1
- import "./dateInputComposed-C_mh4XBg.js";
@@ -1,2 +0,0 @@
1
- import { t as DocumentCapture } from "./documentCapture-BDV_921m.js";
2
- export { DocumentCapture };
@@ -1 +0,0 @@
1
- import "./dropdownComposed-_fgAlo_C.js";
@@ -1,2 +0,0 @@
1
- import { t as EkybModule } from "./ekybModule-CIPGmCvD.js";
2
- export { EkybModule };
@@ -1,2 +0,0 @@
1
- import { t as EkycModule } from "./ekycModule-BuTaC5ct.js";
2
- export { EkycModule };
@@ -1,2 +0,0 @@
1
- import { t as FaceMatch } from "./faceMatch--RDHJe4t.js";
2
- export { FaceMatch };
@@ -1,2 +0,0 @@
1
- import { t as FieldComparison } from "./fieldComparison-CAF86bTC.js";
2
- export { FieldComparison };
@@ -1 +0,0 @@
1
- import "./inputComposed-CQ4AsvZg.js";
@@ -1,71 +0,0 @@
1
- import { _ as y, l as A, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
2
- import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
3
- import { t as incode_logo_default } from "./incode-logo-57XFniXU.js";
4
- import { n as usePageUiConfig, t as VerifiedByIncodeLogo } from "./verifiedByIncode-DjXOdCml.js";
5
- //#region src/shared/page/page.tsx
6
- var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, footerBrandingSlot, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
7
- const titleRef = A(null);
8
- y(() => {
9
- titleRef.current?.focus();
10
- }, []);
11
- const uiConfig = usePageUiConfig({
12
- hideHeader,
13
- hideFooterBranding,
14
- logo,
15
- defaultLogoSrc: incode_logo_default
16
- });
17
- const shouldShowHeader = title || subtitle || titleTopSlot;
18
- return /* @__PURE__ */ u("div", {
19
- class: `IncodePageContainer ${className ?? ""}`,
20
- "data-testid": dataTestId,
21
- "data-permission-status": dataPermissionStatus,
22
- children: /* @__PURE__ */ u("main", {
23
- class: "IncodePageInner",
24
- children: [
25
- !uiConfig.hideHeader && /* @__PURE__ */ u("header", {
26
- class: "IncodePageHeader",
27
- children: /* @__PURE__ */ u("img", {
28
- src: uiConfig.logoSrc,
29
- height: uiConfig.logoHeightPx,
30
- class: "IncodePageLogo",
31
- "aria-hidden": "true",
32
- alt: ""
33
- })
34
- }),
35
- shouldShowHeader ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: uiConfig.hideHeader ? 40 : 24 }), /* @__PURE__ */ u("div", {
36
- class: "IncodePageTitleContainer",
37
- children: [
38
- titleTopSlot ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
39
- class: "IncodePageTitleTopSlot",
40
- children: titleTopSlot
41
- }), /* @__PURE__ */ u(Spacer, { size: 12 })] }) : null,
42
- title ? /* @__PURE__ */ u("h2", {
43
- ref: titleRef,
44
- id: titleId,
45
- class: "IncodePageTitle",
46
- tabIndex: -1,
47
- children: title
48
- }) : null,
49
- subtitle ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
50
- class: "IncodePageSubtitle",
51
- children: subtitle
52
- })] }) : null
53
- ]
54
- })] }) : null,
55
- /* @__PURE__ */ u("div", {
56
- class: "IncodePageContent",
57
- children
58
- }),
59
- !uiConfig.hideFooterBranding ? /* @__PURE__ */ u("div", {
60
- class: "IncodePageFooter",
61
- children: /* @__PURE__ */ u("div", {
62
- class: "IncodePageFooterInner",
63
- children: footerBrandingSlot ?? /* @__PURE__ */ u(VerifiedByIncodeLogo, {})
64
- })
65
- }) : null
66
- ]
67
- })
68
- });
69
- };
70
- //#endregion
71
- export { Page as t };
@@ -1 +0,0 @@
1
- import "./spinner-D8a_2LvW.js";
File without changes