@incodetech/web 2.1.0-rc.1 → 2.1.0-rc.3

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 (176) hide show
  1. package/dist/ae-signature/ae-signature.es.js +2 -2
  2. package/dist/ae-signature/styles.css +59 -45
  3. package/dist/antifraud/antifraud.es.js +4 -4
  4. package/dist/authentication/authentication.es.js +5 -4
  5. package/dist/{autoFocusTitle-BzkUiELM.js → autoFocusTitle-CuRu2lPg.js} +1 -1
  6. package/dist/base.css +100 -60
  7. package/dist/{bottomSheet-F1GJfQx_.js → bottomSheet-CnWbbUAM.js} +1 -1
  8. package/dist/{button-CM_hgyIP.js → button-Dz6AsbmF.js} +7 -2
  9. package/dist/cameraView-DIEzM5ru.js +47 -0
  10. package/dist/{tutorial-D1qaY2Tm.js → capture-CkGvdDNH.js} +23 -573
  11. package/dist/certificate-issuance/certificate-issuance.es.js +249 -0
  12. package/dist/certificate-issuance/styles.css +114 -0
  13. package/dist/{checkbox-BoeLHKgp.js → checkbox-1wUHSoaK.js} +2 -2
  14. package/dist/consent/consent.es.js +11 -11
  15. package/dist/{countrySelector-mSWyHSy4.js → countrySelector-SvUOyPo0.js} +2 -2
  16. package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
  17. package/dist/cpfOcr-B79245-3.js +2 -0
  18. package/dist/{cpfOcr-MtpRztkG.js → cpfOcr-BhxT-lRN.js} +7 -7
  19. package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
  20. package/dist/curp-validation/curp-validation.es.js +17 -17
  21. package/dist/{customFields-DXXt9HGM.js → customFields-BDsXR7A-.js} +11 -11
  22. package/dist/{customWatchlist-DsW04UF6.js → customWatchlist-CYoRNCim.js} +6 -6
  23. package/dist/dateInputComposed-DRzZi6uy.js +1 -0
  24. package/dist/{dateInputComposed-C_mh4XBg.js → dateInputComposed-DuaofcBl.js} +3 -3
  25. package/dist/document-capture/document-capture.es.js +1 -1
  26. package/dist/documentCapture-DXYYyxZl.js +2 -0
  27. package/dist/{documentCapture-BDV_921m.js → documentCapture-DhbO-A-V.js} +15 -13
  28. package/dist/dropdownComposed-BAoxIIsE.js +1 -0
  29. package/dist/{dropdownComposed-_fgAlo_C.js → dropdownComposed-CoU0enG6.js} +9 -10
  30. package/dist/{dynamicForms-DyfnsS7E.js → dynamicForms-BifGbC9F.js} +24 -13
  31. package/dist/ekyb/ekyb.es.js +1 -1
  32. package/dist/ekybModule-C6Nttked.js +2 -0
  33. package/dist/{ekybModule-CIPGmCvD.js → ekybModule-DGnTw5UV.js} +15 -15
  34. package/dist/ekyc/ekyc.es.js +1 -1
  35. package/dist/ekycModule-CDIEjI6V.js +2 -0
  36. package/dist/{ekycModule-BuTaC5ct.js → ekycModule-Dxpdd0ns.js} +14 -14
  37. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  38. package/dist/{electronic-signature-B-Q7M0wK.js → electronic-signature-Ueoffasr.js} +42 -31
  39. package/dist/email/email.es.js +8 -8
  40. package/dist/{emailInput-KZmhjOdZ.js → emailInput-DsLkDtER.js} +6 -6
  41. package/dist/{expiredId-Q1t6aVpk.js → expiredId-BZXLrLk-.js} +6 -6
  42. package/dist/{extensibility-Cs3KQQdC.js → extensibility-7sRIN0JC.js} +54 -89
  43. package/dist/extensibility.es.js +25 -23
  44. package/dist/face-match/face-match.es.js +1 -1
  45. package/dist/face-match/styles.css +4 -0
  46. package/dist/faceMatch-B_HvxLm_.js +2 -0
  47. package/dist/{faceMatch--RDHJe4t.js → faceMatch-DyTBoMDm.js} +10 -10
  48. package/dist/field-comparison/field-comparison.es.js +1 -1
  49. package/dist/fieldComparison-DfNEuEE5.js +2 -0
  50. package/dist/{fieldComparison-CAF86bTC.js → fieldComparison-L_knHqgw.js} +9 -9
  51. package/dist/fiscal-qr/fiscal-qr.es.js +9 -8
  52. package/dist/flow/flow.es.js +35 -12
  53. package/dist/flow/styles.css +4242 -2972
  54. package/dist/geolocation/geolocation.es.js +190 -326
  55. package/dist/geolocation/styles.css +8 -0
  56. package/dist/{governmentValidation/governmentValidation.es.js → government-validation/government-validation.es.js} +12 -16
  57. package/dist/{homeScreen-BZnIEDrV.js → homeScreen-B6T0JVh8.js} +5 -5
  58. package/dist/{hooks-Da_yP_Dr.js → hooks-CNu7o-v8.js} +39 -2
  59. package/dist/{i18n-CoCO2ZuN.js → i18n-CU4xq8qC.js} +1 -1
  60. package/dist/{icons-Dbs9ZfYM.js → icons-CJJbIpBq.js} +2 -2
  61. package/dist/id/id.es.js +80 -50
  62. package/dist/id/styles.css +1 -9
  63. package/dist/id-ocr/styles.css +12 -2
  64. package/dist/id-verification/id-verification.es.js +5 -5
  65. package/dist/{idOcr-CjGbb4dB.js → idOcr-WFBvqy3b.js} +34 -16
  66. package/dist/identity-reuse/identity-reuse.es.js +7 -7
  67. package/dist/{incodeComponent-wfnHlnXx.js → incodeComponent-CfzJGETt.js} +3 -2
  68. package/dist/{incodeModule-BUDoTwT9.js → incodeModule-B-4_3JrK.js} +1 -1
  69. package/dist/index.es.js +1 -1
  70. package/dist/inputComposed-BaY5q9WM.js +1 -0
  71. package/dist/{inputComposed-CQ4AsvZg.js → inputComposed-C1R2LAa3.js} +3 -3
  72. package/dist/{mandatoryConsent-r0PQHmv-.js → mandatoryConsent-D0GTKu-H.js} +10 -10
  73. package/dist/{modal-nTSaG7nB.js → modal-OxkFuuiR.js} +2 -2
  74. package/dist/{optionAccessibleLabel-CnA-mNAU.js → optionAccessibleLabel-gfF-58Mv.js} +5 -5
  75. package/dist/{otpInput-_JmtVwa0.js → otpInput-CnDc6pQm.js} +14 -13
  76. package/dist/{verifiedByIncode-DjXOdCml.js → page-DidH_RkX.js} +70 -2
  77. package/dist/{pdf-BZA70WbM.js → pdf-BqtJTlor.js} +1 -1
  78. package/dist/{pdfViewer-BK-yVIve.js → pdfViewer-B97DmT9m.js} +57 -20
  79. package/dist/phone/phone.es.js +9 -9
  80. package/dist/{phoneInputComposed-DjNdsmPE.js → phoneInputComposed-DMiXfF-1.js} +5 -5
  81. package/dist/{processing-BM-wT-1W.js → processing-BeUMfdJJ.js} +1 -1
  82. package/dist/qe-signature/qe-signature.es.js +2 -2
  83. package/dist/{radioGroupComposed-BNuaopVr.js → radioGroupComposed-DuQxslB2.js} +4 -4
  84. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +36 -32
  85. package/dist/redirect-to-mobile/styles.css +3 -2
  86. package/dist/{richText-Cf9aMOCk.js → richText-CB1fmegc.js} +1 -1
  87. package/dist/selfie/selfie.es.js +8 -7
  88. package/dist/selfie/styles.css +133 -63
  89. package/dist/signature/signature.es.js +9 -9
  90. package/dist/spinner-BCDCoi9C.js +1 -0
  91. package/dist/{spinner-D8a_2LvW.js → spinner-BMeIEK1d.js} +18 -6
  92. package/dist/{statusPage-DMYPUwRZ.js → statusPage-Bk8nJwXV.js} +2 -2
  93. package/dist/themes/dark.css +24 -2
  94. package/dist/themes/light.css +24 -2
  95. package/dist/{transitionSpinner-DRRz-NV8.js → transitionSpinner-CuNCqHNi.js} +12 -8
  96. package/dist/tutorial-CCfPuVKX.js +706 -0
  97. package/dist/types/ae-signature.d.ts +23 -1
  98. package/dist/types/antifraud.d.ts +23 -1
  99. package/dist/types/authentication.d.ts +23 -1
  100. package/dist/types/certificate-issuance.d.ts +68 -0
  101. package/dist/types/consent.d.ts +23 -1
  102. package/dist/types/cross-document-data-match.d.ts +23 -1
  103. package/dist/types/curp-validation.d.ts +23 -1
  104. package/dist/types/document-capture.d.ts +23 -1
  105. package/dist/types/ekyb.d.ts +23 -1
  106. package/dist/types/ekyc.d.ts +23 -1
  107. package/dist/types/electronic-signature.d.ts +23 -1
  108. package/dist/types/email.d.ts +23 -1
  109. package/dist/types/extensibility.d.ts +40 -3
  110. package/dist/types/face-match.d.ts +23 -1
  111. package/dist/types/field-comparison.d.ts +23 -1
  112. package/dist/types/fiscal-qr.d.ts +23 -1
  113. package/dist/types/flow.d.ts +23 -1
  114. package/dist/types/geolocation.d.ts +27 -2
  115. package/dist/types/{governmentValidation.d.ts → government-validation.d.ts} +23 -1
  116. package/dist/types/id-verification.d.ts +23 -1
  117. package/dist/types/id.d.ts +23 -1
  118. package/dist/types/identity-reuse.d.ts +23 -1
  119. package/dist/types/phone.d.ts +23 -1
  120. package/dist/types/qe-signature.d.ts +23 -1
  121. package/dist/types/selfie.d.ts +23 -1
  122. package/dist/types/signature.d.ts +23 -1
  123. package/dist/types/video-selfie.d.ts +72 -0
  124. package/dist/types/watchlist.d.ts +23 -1
  125. package/dist/types/workflow.d.ts +23 -1
  126. package/dist/{useModuleLoader-CeJ2jL25.js → useModuleLoader-Gvo9qscB.js} +42 -25
  127. package/dist/{verificationResult-Do5SpZ6X.js → verificationResult-BWWkmeiA.js} +8 -8
  128. package/dist/video-selfie/styles.css +1644 -0
  129. package/dist/video-selfie/video-selfie.es.js +854 -0
  130. package/dist/watchlist/watchlist.es.js +6 -6
  131. package/dist/{watchlistForBusiness-BFFXC9d-.js → watchlistForBusiness-D2Uo_TwF.js} +10 -10
  132. package/dist/workflow/styles.css +254 -76
  133. package/dist/workflow/workflow.es.js +146 -17
  134. package/package.json +42 -5
  135. package/dist/cpfOcr-jJkYCfsX.js +0 -2
  136. package/dist/dateInputComposed-Cy6a7ymh.js +0 -1
  137. package/dist/documentCapture-8ypBJehw.js +0 -2
  138. package/dist/dropdownComposed-CEWBSdGl.js +0 -1
  139. package/dist/ekybModule-DFoYpheB.js +0 -2
  140. package/dist/ekycModule-BGzwgjl1.js +0 -2
  141. package/dist/faceMatch-yEKPYaym.js +0 -2
  142. package/dist/fieldComparison-D0an7T_g.js +0 -2
  143. package/dist/inputComposed-BEn7_nZd.js +0 -1
  144. package/dist/page-DxGQj7Gk.js +0 -71
  145. package/dist/spinner-B6RxGFrI.js +0 -1
  146. /package/dist/{aligndevicelottie-DY_bX_p8.js → aligndevicelottie-DFscByAI.js} +0 -0
  147. /package/dist/{back-horizontal-hint-D_8LptLm.js → back-horizontal-hint-xTnSQbzn.js} +0 -0
  148. /package/dist/{back-tutorial-vb1MxlrT.js → back-tutorial-cI_4VHmE.js} +0 -0
  149. /package/dist/{back-vertical-hint-C1evxxq2.js → back-vertical-hint-BWWlHfX2.js} +0 -0
  150. /package/dist/{backdevicelottie-HypPqBz7.js → backdevicelottie-COyhTrxM.js} +0 -0
  151. /package/dist/{blurdevicelottie-CBXtBFiJ.js → blurdevicelottie-BLVeJHEG.js} +0 -0
  152. /package/dist/{browser-ponyfill-CLLvZCVg.js → browser-ponyfill-Df13Th-G.js} +0 -0
  153. /package/dist/{defineProperty-mefzVtTv.js → defineProperty-Qjefk7Uf.js} +0 -0
  154. /package/dist/{errorIcon-DJRZpd8j.js → errorIcon-BA4T6iy-.js} +0 -0
  155. /package/dist/{flip-animation-BGRvygw9.js → flip-animation-CZYSUtMm.js} +0 -0
  156. /package/dist/{front-horizontal-hint-Uf5bHCsd.js → front-horizontal-hint-B84GgTO1.js} +0 -0
  157. /package/dist/{front-vertical-hint-DdWNA45v.js → front-vertical-hint-Bs_avngq.js} +0 -0
  158. /package/dist/{frontdevicelottie-CLqitJhG.js → frontdevicelottie-B4tE2PYQ.js} +0 -0
  159. /package/dist/{glaredevicelottie-BS04U6Fc.js → glaredevicelottie-D1pR73sx.js} +0 -0
  160. /package/dist/{governmentValidation → government-validation}/styles.css +0 -0
  161. /package/dist/{id-laser-h-DX8UbVNH.js → id-laser-h-CzPegPMn.js} +0 -0
  162. /package/dist/{id-laser-v-DhnHdjlB.js → id-laser-v-BiUXkM4x.js} +0 -0
  163. /package/dist/{id-tutorial-lj4iKtYT.js → id-tutorial-DwO90SAm.js} +0 -0
  164. /package/dist/{lottie_light-Dp9Bz3mf.js → lottie_light-C6B2ec41.js} +0 -0
  165. /package/dist/{modal.hooks-D2xhIuHA.js → modal.hooks-ZrzmHAUa.js} +0 -0
  166. /package/dist/{numberedStep-CEtwZqLp.js → numberedStep-CEb-lFJm.js} +0 -0
  167. /package/dist/{passport-horizontal-hint-Bbm2mvSn.js → passport-horizontal-hint-Bj0ZJY0g.js} +0 -0
  168. /package/dist/{passport-tutorial-zT1ZoA-D.js → passport-tutorial-D9JNsMsM.js} +0 -0
  169. /package/dist/{passport-vertical-hint-DJbCtBiM.js → passport-vertical-hint-Dfk77xUJ.js} +0 -0
  170. /package/dist/{registerIncodeElement-77NGCDsy.js → registerIncodeElement-DaNjbAwZ.js} +0 -0
  171. /package/dist/{requiredLabelHint-DEadtiwx.js → requiredLabelHint-D0RhuMed.js} +0 -0
  172. /package/dist/{selfieTutorial-CtruLyO2.js → selfieTutorial-pB-N-fj5.js} +0 -0
  173. /package/dist/{snackbar-CxepGC3e.js → snackbar-DS7Mv62v.js} +0 -0
  174. /package/dist/{successIcon-BAyDPT7I.js → successIcon-B5mGvdx1.js} +0 -0
  175. /package/dist/{tabs-C8npVBbk.js → tabs-C__chW-u.js} +0 -0
  176. /package/dist/{typography-YLgHHuao.js → typography-BZIpjo97.js} +0 -0
@@ -5,6 +5,26 @@ export declare const AeSignature: FC<AeSignatureModuleProps>;
5
5
 
6
6
  declare type AeSignatureModuleProps = IncodeModuleProps<AeSignatureConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -6,6 +6,26 @@ export declare const Antifraud: FC<AntifraudProps>;
6
6
 
7
7
  declare type AntifraudProps = IncodeModuleProps<AntifraudConfig, void, AntifraudManager>;
8
8
 
9
+ /**
10
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
11
+ * how to react to the terminal state without inspecting the DOM. Only the
12
+ * workflow module sets these fields today.
13
+ */
14
+ declare type IncodeFinishMeta = {
15
+ /**
16
+ * True when the SDK owns the terminal screen — it has already rendered its
17
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
18
+ * screen), so the host should not render its own completion screen on top.
19
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
20
+ * OAuth parent).
21
+ *
22
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
23
+ * because the host reads this flag — a host that ignores it will still
24
+ * replace the SDK screen. Not a guarantee.
25
+ */
26
+ sdkOwnsTerminalScreen?: boolean;
27
+ };
28
+
9
29
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
30
  /**
11
31
  * Module configuration required to render the flow.
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
19
39
  /**
20
40
  * Callback invoked when the module completes successfully.
21
41
  * @param result - Optional result data from the module completion
42
+ * @param meta - Optional context about how the module resolved (e.g. whether
43
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
22
44
  */
23
- onFinish?: (result?: TResult) => void;
45
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
24
46
  /**
25
47
  * Callback invoked when a fatal module error occurs.
26
48
  *
@@ -8,6 +8,26 @@ declare type AuthenticationProps = IncodeModuleProps<AuthenticationConfig & {
8
8
  authHint?: string;
9
9
  }, void, AuthenticationManager>;
10
10
 
11
+ /**
12
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
13
+ * how to react to the terminal state without inspecting the DOM. Only the
14
+ * workflow module sets these fields today.
15
+ */
16
+ declare type IncodeFinishMeta = {
17
+ /**
18
+ * True when the SDK owns the terminal screen — it has already rendered its
19
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
20
+ * screen), so the host should not render its own completion screen on top.
21
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
22
+ * OAuth parent).
23
+ *
24
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
25
+ * because the host reads this flag — a host that ignores it will still
26
+ * replace the SDK screen. Not a guarantee.
27
+ */
28
+ sdkOwnsTerminalScreen?: boolean;
29
+ };
30
+
11
31
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
12
32
  /**
13
33
  * Module configuration required to render the flow.
@@ -21,8 +41,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
21
41
  /**
22
42
  * Callback invoked when the module completes successfully.
23
43
  * @param result - Optional result data from the module completion
44
+ * @param meta - Optional context about how the module resolved (e.g. whether
45
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
24
46
  */
25
- onFinish?: (result?: TResult) => void;
47
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
26
48
  /**
27
49
  * Callback invoked when a fatal module error occurs.
28
50
  *
@@ -0,0 +1,68 @@
1
+ import { CertificateIssuanceConfig } from '@incodetech/core/certificate-issuance';
2
+ import { CertificateIssuanceManager } from '@incodetech/core/certificate-issuance';
3
+ import { FC } from 'preact/compat';
4
+
5
+ export declare const CertificateIssuance: FC<CertificateIssuanceProps>;
6
+
7
+ declare type CertificateIssuanceProps = IncodeModuleProps<CertificateIssuanceConfig> & {
8
+ manager?: CertificateIssuanceManager;
9
+ };
10
+
11
+ /**
12
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
13
+ * how to react to the terminal state without inspecting the DOM. Only the
14
+ * workflow module sets these fields today.
15
+ */
16
+ declare type IncodeFinishMeta = {
17
+ /**
18
+ * True when the SDK owns the terminal screen — it has already rendered its
19
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
20
+ * screen), so the host should not render its own completion screen on top.
21
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
22
+ * OAuth parent).
23
+ *
24
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
25
+ * because the host reads this flag — a host that ignores it will still
26
+ * replace the SDK screen. Not a guarantee.
27
+ */
28
+ sdkOwnsTerminalScreen?: boolean;
29
+ };
30
+
31
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
32
+ /**
33
+ * Module configuration required to render the flow.
34
+ * For Web Components, this is typically assigned via `element.config = ...`.
35
+ */
36
+ config?: TConfig;
37
+ /**
38
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
39
+ */
40
+ manager?: TManager;
41
+ /**
42
+ * Callback invoked when the module completes successfully.
43
+ * @param result - Optional result data from the module completion
44
+ * @param meta - Optional context about how the module resolved (e.g. whether
45
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
46
+ */
47
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
48
+ /**
49
+ * Callback invoked when a fatal module error occurs.
50
+ *
51
+ * @param error - Human-readable error message.
52
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
53
+ * the workflow and flow modules on QR validation failures —
54
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
55
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
56
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
57
+ * branch on the specific terminal error without parsing the message string.
58
+ */
59
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
60
+ };
61
+
62
+ export { }
63
+
64
+ declare global {
65
+ interface HTMLElementTagNameMap {
66
+ 'incode-certificate-issuance': HTMLElement & IncodeModuleProps<CertificateIssuanceConfig>;
67
+ }
68
+ }
@@ -6,6 +6,26 @@ export declare const Consent: FC<ConsentProps>;
6
6
 
7
7
  declare type ConsentProps = IncodeModuleProps<ConsentConfig, void, ConsentManager>;
8
8
 
9
+ /**
10
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
11
+ * how to react to the terminal state without inspecting the DOM. Only the
12
+ * workflow module sets these fields today.
13
+ */
14
+ declare type IncodeFinishMeta = {
15
+ /**
16
+ * True when the SDK owns the terminal screen — it has already rendered its
17
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
18
+ * screen), so the host should not render its own completion screen on top.
19
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
20
+ * OAuth parent).
21
+ *
22
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
23
+ * because the host reads this flag — a host that ignores it will still
24
+ * replace the SDK screen. Not a guarantee.
25
+ */
26
+ sdkOwnsTerminalScreen?: boolean;
27
+ };
28
+
9
29
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
30
  /**
11
31
  * Module configuration required to render the flow.
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
19
39
  /**
20
40
  * Callback invoked when the module completes successfully.
21
41
  * @param result - Optional result data from the module completion
42
+ * @param meta - Optional context about how the module resolved (e.g. whether
43
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
22
44
  */
23
- onFinish?: (result?: TResult) => void;
45
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
24
46
  /**
25
47
  * Callback invoked when a fatal module error occurs.
26
48
  *
@@ -5,6 +5,26 @@ export declare const CrossDocumentDataMatch: FC<CrossDocumentDataMatchProps>;
5
5
 
6
6
  declare type CrossDocumentDataMatchProps = IncodeModuleProps<CrossDocumentDataMatchConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -6,6 +6,26 @@ export declare const CurpValidation: FC<CurpValidationProps>;
6
6
 
7
7
  declare type CurpValidationProps = IncodeModuleProps<CurpValidationConfig, void, CurpValidationManager>;
8
8
 
9
+ /**
10
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
11
+ * how to react to the terminal state without inspecting the DOM. Only the
12
+ * workflow module sets these fields today.
13
+ */
14
+ declare type IncodeFinishMeta = {
15
+ /**
16
+ * True when the SDK owns the terminal screen — it has already rendered its
17
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
18
+ * screen), so the host should not render its own completion screen on top.
19
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
20
+ * OAuth parent).
21
+ *
22
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
23
+ * because the host reads this flag — a host that ignores it will still
24
+ * replace the SDK screen. Not a guarantee.
25
+ */
26
+ sdkOwnsTerminalScreen?: boolean;
27
+ };
28
+
9
29
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
30
  /**
11
31
  * Module configuration required to render the flow.
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
19
39
  /**
20
40
  * Callback invoked when the module completes successfully.
21
41
  * @param result - Optional result data from the module completion
42
+ * @param meta - Optional context about how the module resolved (e.g. whether
43
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
22
44
  */
23
- onFinish?: (result?: TResult) => void;
45
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
24
46
  /**
25
47
  * Callback invoked when a fatal module error occurs.
26
48
  *
@@ -5,6 +5,26 @@ export declare const DocumentCapture: FC<DocumentCaptureProps>;
5
5
 
6
6
  declare type DocumentCaptureProps = IncodeModuleProps<DocumentCaptureConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -5,6 +5,26 @@ export declare const EkybModule: FC<EkybModuleProps>;
5
5
 
6
6
  declare type EkybModuleProps = IncodeModuleProps<EkybConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -5,6 +5,26 @@ export declare const EkycModule: FC<EkycModuleProps>;
5
5
 
6
6
  declare type EkycModuleProps = IncodeModuleProps<EkycConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -8,6 +8,26 @@ export declare const ElectronicSignature: FC<ElectronicSignatureModuleProps>;
8
8
 
9
9
  declare type ElectronicSignatureModuleProps = IncodeModuleProps<ElectronicSignatureConfig>;
10
10
 
11
+ /**
12
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
13
+ * how to react to the terminal state without inspecting the DOM. Only the
14
+ * workflow module sets these fields today.
15
+ */
16
+ declare type IncodeFinishMeta = {
17
+ /**
18
+ * True when the SDK owns the terminal screen — it has already rendered its
19
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
20
+ * screen), so the host should not render its own completion screen on top.
21
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
22
+ * OAuth parent).
23
+ *
24
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
25
+ * because the host reads this flag — a host that ignores it will still
26
+ * replace the SDK screen. Not a guarantee.
27
+ */
28
+ sdkOwnsTerminalScreen?: boolean;
29
+ };
30
+
11
31
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
12
32
  /**
13
33
  * Module configuration required to render the flow.
@@ -21,8 +41,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
21
41
  /**
22
42
  * Callback invoked when the module completes successfully.
23
43
  * @param result - Optional result data from the module completion
44
+ * @param meta - Optional context about how the module resolved (e.g. whether
45
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
24
46
  */
25
- onFinish?: (result?: TResult) => void;
47
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
26
48
  /**
27
49
  * Callback invoked when a fatal module error occurs.
28
50
  *
@@ -32,6 +32,26 @@ export declare const Email: FC<EmailProps>;
32
32
  */
33
33
  declare type EmailProps = IncodeModuleProps<EmailConfig, void, EmailManager>;
34
34
 
35
+ /**
36
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
37
+ * how to react to the terminal state without inspecting the DOM. Only the
38
+ * workflow module sets these fields today.
39
+ */
40
+ declare type IncodeFinishMeta = {
41
+ /**
42
+ * True when the SDK owns the terminal screen — it has already rendered its
43
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
44
+ * screen), so the host should not render its own completion screen on top.
45
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
46
+ * OAuth parent).
47
+ *
48
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
49
+ * because the host reads this flag — a host that ignores it will still
50
+ * replace the SDK screen. Not a guarantee.
51
+ */
52
+ sdkOwnsTerminalScreen?: boolean;
53
+ };
54
+
35
55
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
36
56
  /**
37
57
  * Module configuration required to render the flow.
@@ -45,8 +65,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
45
65
  /**
46
66
  * Callback invoked when the module completes successfully.
47
67
  * @param result - Optional result data from the module completion
68
+ * @param meta - Optional context about how the module resolved (e.g. whether
69
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
48
70
  */
49
- onFinish?: (result?: TResult) => void;
71
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
50
72
  /**
51
73
  * Callback invoked when a fatal module error occurs.
52
74
  *
@@ -60,7 +60,7 @@ declare type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'class' | 'ty
60
60
  disabled?: boolean;
61
61
  };
62
62
 
63
- declare type ButtonSize = 'L' | 'M' | 'S';
63
+ declare type ButtonSize = 'L' | 'M' | 'S' | 'inline';
64
64
 
65
65
  export declare const CalendarIcon: FC<CalendarIconProps>;
66
66
 
@@ -125,6 +125,7 @@ declare type CameraViewProps = {
125
125
  videoRef?: Ref<HTMLVideoElement>;
126
126
  onPlaying?: () => void;
127
127
  className?: string;
128
+ mirrored?: boolean;
128
129
  'data-testid'?: string;
129
130
  };
130
131
 
@@ -302,7 +303,6 @@ declare type DropdownComposedProps = {
302
303
  onBlur?: () => void;
303
304
  renderSelectedLabel?: (option: DropdownOption) => string;
304
305
  siblingElement?: ComponentChildren;
305
- enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
306
306
  class?: string;
307
307
  'aria-label'?: string;
308
308
  'data-testid'?: string;
@@ -403,6 +403,9 @@ declare type IdErrorProps = {
403
403
  * wires `idCaptureManager.retryCapture()` and forwards the
404
404
  * `attemptsRemaining` counter into the shared `<ExpiredId>` primitive.
405
405
  *
406
+ * `isBackSide` triggers the Figma `1-9-11-id-documenterror` subtitle
407
+ * ("Use a different ID from the accepted list") when the back side expired.
408
+ *
406
409
  * Workflow's verify-side node uses its own wrapper in the `id-verification`
407
410
  * module that passes only `onContinue` (no attempts concept), matching the
408
411
  * legacy SDK 1 `Workflow.tsx → ProcessId.jsx → ExpiredId` one-shot Continue
@@ -413,6 +416,7 @@ export declare const IdExpired: FC<IdExpiredProps>;
413
416
  declare type IdExpiredProps = {
414
417
  manager: IdCaptureManager;
415
418
  attemptsRemaining: number;
419
+ isBackSide?: boolean;
416
420
  };
417
421
 
418
422
  export declare const IdFlipAnimation: FC<FlipAnimationProps>;
@@ -429,6 +433,26 @@ declare type IncodeComponentProps = {
429
433
  children?: ComponentChildren;
430
434
  };
431
435
 
436
+ /**
437
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
438
+ * how to react to the terminal state without inspecting the DOM. Only the
439
+ * workflow module sets these fields today.
440
+ */
441
+ declare type IncodeFinishMeta = {
442
+ /**
443
+ * True when the SDK owns the terminal screen — it has already rendered its
444
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
445
+ * screen), so the host should not render its own completion screen on top.
446
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
447
+ * OAuth parent).
448
+ *
449
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
450
+ * because the host reads this flag — a host that ignores it will still
451
+ * replace the SDK screen. Not a guarantee.
452
+ */
453
+ sdkOwnsTerminalScreen?: boolean;
454
+ };
455
+
432
456
  export declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
433
457
  /**
434
458
  * Module configuration required to render the flow.
@@ -442,8 +466,10 @@ export declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknow
442
466
  /**
443
467
  * Callback invoked when the module completes successfully.
444
468
  * @param result - Optional result data from the module completion
469
+ * @param meta - Optional context about how the module resolved (e.g. whether
470
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
445
471
  */
446
- onFinish?: (result?: TResult) => void;
472
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
447
473
  /**
448
474
  * Callback invoked when a fatal module error occurs.
449
475
  *
@@ -841,12 +867,23 @@ declare type SpinnerProps = {
841
867
  title?: string;
842
868
  /** Subtitle text to display below the title */
843
869
  subtitle?: string;
870
+ ariaLabel?: string;
844
871
  /** Size of the spinner icon */
845
872
  size?: SpinnerSize;
846
873
  /** Whether to fill the SDK container */
847
874
  fullScreen?: boolean;
848
875
  /** Additional CSS class name */
849
876
  className?: string;
877
+ /**
878
+ * Render the spinner purely visually and hide it from assistive tech:
879
+ * no `role="status"`, no live region, no `aria-label`, no focus-on-mount,
880
+ * and `aria-hidden` on the container. The title/subtitle stay visible.
881
+ *
882
+ * Use when the spinner may sit behind a native OS surface (e.g. the camera
883
+ * permission prompt) where an announced/focusable status would leak — a
884
+ * screen reader must not be able to swipe into or hear it behind that prompt.
885
+ */
886
+ presentational?: boolean;
850
887
  };
851
888
 
852
889
  export declare type SpinnerSize = 'small' | 'medium' | 'large';
@@ -30,6 +30,26 @@ export declare const FaceMatch: FC<FaceMatchProps>;
30
30
  */
31
31
  declare type FaceMatchProps = IncodeModuleProps<FaceMatchConfig>;
32
32
 
33
+ /**
34
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
35
+ * how to react to the terminal state without inspecting the DOM. Only the
36
+ * workflow module sets these fields today.
37
+ */
38
+ declare type IncodeFinishMeta = {
39
+ /**
40
+ * True when the SDK owns the terminal screen — it has already rendered its
41
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
42
+ * screen), so the host should not render its own completion screen on top.
43
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
44
+ * OAuth parent).
45
+ *
46
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
47
+ * because the host reads this flag — a host that ignores it will still
48
+ * replace the SDK screen. Not a guarantee.
49
+ */
50
+ sdkOwnsTerminalScreen?: boolean;
51
+ };
52
+
33
53
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
34
54
  /**
35
55
  * Module configuration required to render the flow.
@@ -43,8 +63,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
43
63
  /**
44
64
  * Callback invoked when the module completes successfully.
45
65
  * @param result - Optional result data from the module completion
66
+ * @param meta - Optional context about how the module resolved (e.g. whether
67
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
46
68
  */
47
- onFinish?: (result?: TResult) => void;
69
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
48
70
  /**
49
71
  * Callback invoked when a fatal module error occurs.
50
72
  *