@incodetech/web 2.0.0-alpha.8 → 2.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -0
  2. package/dist/ae-signature/styles.css +348 -0
  3. package/dist/ae-signature/styles2.css +107 -0
  4. package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
  5. package/dist/antifraud/antifraud.es.js +18 -0
  6. package/dist/antifraud/styles.css +2 -0
  7. package/dist/authentication/authentication.es.js +29 -0
  8. package/dist/autoFocusTitle-QexamZ4i.js +16 -0
  9. package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
  10. package/dist/back-tutorial-1NOQobGO.js +14585 -0
  11. package/dist/back-vertical-hint-BBo36dxn.js +128 -0
  12. package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
  13. package/dist/base.css +5218 -639
  14. package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
  15. package/dist/bottomSheet-DE_8TFEC.js +31 -0
  16. package/dist/browser-ponyfill-jOkuz57z.js +299 -0
  17. package/dist/button-DcCUEn2n.js +24 -0
  18. package/dist/checkbox-Cl57ltq_.js +85 -0
  19. package/dist/consent/consent.es.js +90 -0
  20. package/dist/consent/styles.css +116 -0
  21. package/dist/countrySelector-CE-JgIsv.js +58 -0
  22. package/dist/cpf-ocr/styles.css +45 -0
  23. package/dist/cpfOcr-D_tbwbvh.js +78 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
  25. package/dist/curp-validation/curp-validation.es.js +279 -0
  26. package/dist/curp-validation/styles.css +82 -0
  27. package/dist/custom-fields/styles.css +22 -0
  28. package/dist/customFields-CW38fQUv.js +127 -0
  29. package/dist/customWatchlist-D9_yjEQd.js +33 -0
  30. package/dist/dateInputComposed-BpAGsjN6.js +55 -0
  31. package/dist/dateInputComposed-DU3o6PAV.js +1 -0
  32. package/dist/defineProperty-Dh8nSJpJ.js +39 -0
  33. package/dist/document-capture/styles.css +367 -0
  34. package/dist/documentCapture-xX-JT7ZY.js +763 -0
  35. package/dist/dropdownComposed-DFRBG22E.js +284 -0
  36. package/dist/dropdownComposed-DwTzc2YU.js +1 -0
  37. package/dist/dynamic-forms/styles.css +36 -0
  38. package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
  39. package/dist/ekyb/ekyb.es.js +2 -0
  40. package/dist/ekyb/styles.css +137 -0
  41. package/dist/ekybModule-BSs7mndb.js +280 -0
  42. package/dist/ekybModule-D9M3E2Gm.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -0
  44. package/dist/ekyc/styles.css +106 -0
  45. package/dist/ekycModule-CU9pt5YN.js +246 -0
  46. package/dist/ekycModule-CZw9cLno.js +2 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  48. package/dist/electronic-signature-COYXjGdd.js +410 -0
  49. package/dist/email/email.es.js +87 -145
  50. package/dist/email/styles.css +5 -116
  51. package/dist/emailInput-DppGf9pv.js +37 -0
  52. package/dist/expiredId-BnmzE8T3.js +70 -0
  53. package/dist/extensibility-CzEJfRwo.js +2586 -0
  54. package/dist/extensibility.es.js +25 -0
  55. package/dist/face-match/face-match.es.js +2 -0
  56. package/dist/face-match/styles.css +910 -0
  57. package/dist/faceMatch-B8j0g0Yo.js +2 -0
  58. package/dist/faceMatch-BV8UD7tj.js +201 -0
  59. package/dist/flip-animation-CgwRsEmK.js +6983 -0
  60. package/dist/flow/flow.es.js +646 -542
  61. package/dist/flow/styles.css +4524 -440
  62. package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
  63. package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
  64. package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
  65. package/dist/geolocation/geolocation.es.js +857 -0
  66. package/dist/geolocation/styles.css +158 -0
  67. package/dist/glaredevicelottie-B10axYs_.js +14466 -0
  68. package/dist/governmentValidation/governmentValidation.es.js +98 -0
  69. package/dist/governmentValidation/styles.css +58 -0
  70. package/dist/homeScreen-DnP1jw9A.js +227 -0
  71. package/dist/hooks-BVnGysT7.js +80 -0
  72. package/dist/i18n-9s4OSqwi.js +2010 -0
  73. package/dist/icons-Cc7zwchP.js +310 -0
  74. package/dist/id/id.es.js +832 -0
  75. package/dist/id/styles.css +1287 -0
  76. package/dist/id-laser-h-mBAzHVOK.js +467 -0
  77. package/dist/id-laser-v-CrFg4bcJ.js +483 -0
  78. package/dist/id-ocr/styles.css +46 -0
  79. package/dist/id-tutorial-BCr42Pnn.js +13153 -0
  80. package/dist/id-verification/id-verification.es.js +20 -0
  81. package/dist/idOcr-CCjfWQvH.js +94 -0
  82. package/dist/identity-reuse/identity-reuse.es.js +198 -0
  83. package/dist/identity-reuse/styles.css +163 -0
  84. package/dist/incode-logo-DX016usY.js +4 -0
  85. package/dist/incodeComponent-C1o4M0ZK.js +50 -0
  86. package/dist/incodeModule-BqCjVgEI.js +18 -0
  87. package/dist/index.es.js +16 -6
  88. package/dist/inputComposed-APSw8C7o.js +89 -0
  89. package/dist/inputComposed-XYrarFxS.js +1 -0
  90. package/dist/loadingIcon-BN5YRQUb.js +104 -0
  91. package/dist/mandatoryConsent-DssKMC3v.js +100 -0
  92. package/dist/modal-NMxsQHAO.js +135 -0
  93. package/dist/modal.hooks-CAjcIFZK.js +126 -0
  94. package/dist/numberedStep-CT-alrK5.js +11 -0
  95. package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
  96. package/dist/otpInput-DqRA_egd.js +145 -0
  97. package/dist/page-C1yT4DLb.js +69 -0
  98. package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
  99. package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
  100. package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
  101. package/dist/pdf-BurGZ08w.js +14967 -0
  102. package/dist/pdfViewer-BGBNL1Ea.js +63 -0
  103. package/dist/phone/phone.es.js +98 -3441
  104. package/dist/phone/styles.css +3 -297
  105. package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
  106. package/dist/processing-G_y3o32b.js +6 -0
  107. package/dist/qe-signature/qe-signature.es.js +15 -0
  108. package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
  109. package/dist/redirect-to-mobile/styles.css +588 -0
  110. package/dist/redirectToMobile-C3k1gloW.js +1514 -0
  111. package/dist/requiredLabelHint-BLwgqozE.js +13 -0
  112. package/dist/richText-DbJ5sl2n.js +1973 -0
  113. package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
  114. package/dist/selfie/selfie.es.js +42 -892
  115. package/dist/selfie/styles.css +298 -184
  116. package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
  117. package/dist/signature/signature.es.js +546 -0
  118. package/dist/snackbar-BDp8x7Cv.js +14 -0
  119. package/dist/spinner-B4dcie2T.js +1 -0
  120. package/dist/spinner-CKnjVHxw.js +39 -0
  121. package/dist/statusPage-CUI7ApcU.js +28 -0
  122. package/dist/successIcon-DbILeIz_.js +28 -0
  123. package/dist/tabs-DaPyP71c.js +78 -0
  124. package/dist/themes/dark.css +846 -151
  125. package/dist/themes/light.css +798 -116
  126. package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
  127. package/dist/tutorial-9vHAHvMK.js +2587 -0
  128. package/dist/types/ae-signature.d.ts +40 -0
  129. package/dist/types/antifraud.d.ts +40 -0
  130. package/dist/types/authentication.d.ts +45 -0
  131. package/dist/types/consent.d.ts +41 -0
  132. package/dist/types/cpf-ocr/styles.d.ts +1 -0
  133. package/dist/types/cross-document-data-match.d.ts +34 -0
  134. package/dist/types/curp-validation.d.ts +40 -0
  135. package/dist/types/custom-fields/styles.d.ts +1 -0
  136. package/dist/types/document-capture/styles.d.ts +1 -0
  137. package/dist/types/dynamic-forms/styles.d.ts +1 -0
  138. package/dist/types/ekyb.d.ts +34 -0
  139. package/dist/types/ekyc.d.ts +34 -0
  140. package/dist/types/electronic-signature.d.ts +43 -0
  141. package/dist/types/email.d.ts +14 -4
  142. package/dist/types/extensibility.d.ts +981 -0
  143. package/dist/types/face-match.d.ts +59 -0
  144. package/dist/types/flow.d.ts +81 -13
  145. package/dist/types/geolocation.d.ts +41 -0
  146. package/dist/types/governmentValidation.d.ts +34 -0
  147. package/dist/types/id-ocr/styles.d.ts +1 -0
  148. package/dist/types/id-verification.d.ts +40 -0
  149. package/dist/types/id.d.ts +41 -0
  150. package/dist/types/identity-reuse.d.ts +43 -0
  151. package/dist/types/index.d.ts +6 -12
  152. package/dist/types/mandatory-consent/styles.d.ts +1 -0
  153. package/dist/types/phone.d.ts +14 -4
  154. package/dist/types/qe-signature.d.ts +40 -0
  155. package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
  156. package/dist/types/selfie.d.ts +14 -4
  157. package/dist/types/signature.d.ts +40 -0
  158. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  159. package/dist/types/watchlist.d.ts +40 -0
  160. package/dist/types/workflow.d.ts +91 -0
  161. package/dist/typography-CxjaknHN.js +28 -0
  162. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  163. package/dist/useModuleLoader-BFiVA41N.js +432 -0
  164. package/dist/vendor-preact-D6SntenC.js +958 -0
  165. package/dist/verificationResult-BrVbUJ4U.js +97 -0
  166. package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
  167. package/dist/watchlist/watchlist.es.js +33 -0
  168. package/dist/watchlist-for-business/styles.css +18 -0
  169. package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
  170. package/dist/workflow/styles.css +4612 -0
  171. package/dist/workflow/workflow.es.js +244 -0
  172. package/package.json +211 -15
  173. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  174. package/dist/incodeModule-Dv8Qllrv.js +0 -254
  175. package/dist/instance-B-q0ZREN.js +0 -2140
  176. package/dist/otpInput-BtoZe0Wz.js +0 -151
  177. package/dist/page-D9ijzlSn.js +0 -234
  178. package/dist/selfieTutorial-C-u5GufD.js +0 -29
  179. package/dist/setup-wNL83jmW.js +0 -20
  180. package/dist/title-BfO5Dlzk.js +0 -25
  181. package/dist/uiConfig-CQ1W9cUD.js +0 -23
  182. package/dist/vendor-preact-CK0WeTOR.js +0 -584
@@ -0,0 +1,59 @@
1
+ import { FaceMatchConfig } from '@incodetech/core/face-match';
2
+ import { FC } from 'preact/compat';
3
+
4
+ /**
5
+ * Face match UI component.
6
+ *
7
+ * Provides a complete face comparison experience including:
8
+ * - Animated photo comparison sequence
9
+ * - Match/no-match result display
10
+ * - Continue button to proceed
11
+ *
12
+ * @example Basic usage
13
+ * ```tsx
14
+ * <FaceMatch
15
+ * config={{
16
+ * variant: 'selfieVsId',
17
+ * disableFaceMatchAnimation: false,
18
+ * }}
19
+ * onFinish={() => router.push('/next-step')}
20
+ * onError={(err) => toast.error(err)}
21
+ * />
22
+ * ```
23
+ *
24
+ * @see {@link createFaceMatchManager} for headless usage
25
+ */
26
+ export declare const FaceMatch: FC<FaceMatchProps>;
27
+
28
+ /**
29
+ * Props for the FaceMatch component
30
+ */
31
+ declare type FaceMatchProps = IncodeModuleProps<FaceMatchConfig>;
32
+
33
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
34
+ /**
35
+ * Module configuration required to render the flow.
36
+ * For Web Components, this is typically assigned via `element.config = ...`.
37
+ */
38
+ config?: TConfig;
39
+ /**
40
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
41
+ */
42
+ manager?: TManager;
43
+ /**
44
+ * Callback invoked when the module completes successfully.
45
+ * @param result - Optional result data from the module completion
46
+ */
47
+ onFinish?: (result?: TResult) => 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
+ */
56
+ onError?: (error: string | undefined, errorCode?: number) => void;
57
+ };
58
+
59
+ export { }
@@ -1,16 +1,47 @@
1
+ import { CreateSessionOptions } from '@incodetech/core/session';
1
2
  import { FC } from 'preact/compat';
2
3
  import { FinishStatus } from '@incodetech/core/flow';
3
- import { WasmConfig } from '@incodetech/core';
4
+ import { FlowEvent } from '@incodetech/core/flow-events';
5
+ import { WasmConfig } from '@incodetech/core/wasm';
4
6
 
5
- export declare type FlowConfig = {
6
- apiURL: string;
7
- token: string;
7
+ declare type ApiKeySessionBootstrap = {
8
+ apiKey: string;
9
+ clientId?: string;
10
+ };
11
+
12
+ declare type ClientIdSessionBootstrap = {
13
+ apiKey?: string;
14
+ clientId: string;
15
+ };
16
+
17
+ declare type FlowBaseConfig = {
18
+ authHint?: string;
8
19
  wasmConfig?: WasmConfig;
9
20
  lang?: string;
10
21
  disableDashboardTheme?: boolean;
22
+ enableHome?: boolean;
23
+ useCPF?: boolean;
24
+ };
25
+
26
+ export declare type FlowConfig = FlowRuntimeConfig & FlowUiConfig;
27
+
28
+ declare type FlowRuntimeConfig = TokenFlowRuntimeConfig | SelfLoadingFlowRuntimeConfig;
29
+
30
+ declare type FlowUiConfig = {
11
31
  onModuleLoading?: (moduleKey: string) => void;
12
32
  onModuleLoaded?: (moduleKey: string) => void;
33
+ /**
34
+ * Receives curated flow milestones from this flow instance.
35
+ *
36
+ * Use this local-only stream for integration milestones such as
37
+ * `flow.started`, `flow.ready`, `flow.module.started`,
38
+ * `flow.module.completed`, `flow.completed`, and `flow.error`.
39
+ * For raw analytics events, use `subscribeEvent` from
40
+ * `@incodetech/core/events`.
41
+ */
42
+ onFlowEvent?: (event: FlowEvent) => void;
13
43
  onWasmWarmup?: (pipelines: string[]) => void;
44
+ onUrlUuidRefreshed?: (urlUuid: string) => void;
14
45
  spinnerConfig?: SpinnerConfig;
15
46
  };
16
47
 
@@ -18,12 +49,16 @@ export declare const IncodeFlow: FC<IncodeFlowProps>;
18
49
 
19
50
  declare type IncodeFlowProps = IncodeModuleProps<FlowConfig, FinishStatus>;
20
51
 
21
- declare type IncodeModuleProps<TConfig, TResult = void> = {
52
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
22
53
  /**
23
54
  * Module configuration required to render the flow.
24
55
  * For Web Components, this is typically assigned via `element.config = ...`.
25
56
  */
26
57
  config?: TConfig;
58
+ /**
59
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
60
+ */
61
+ manager?: TManager;
27
62
  /**
28
63
  * Callback invoked when the module completes successfully.
29
64
  * @param result - Optional result data from the module completion
@@ -31,16 +66,25 @@ declare type IncodeModuleProps<TConfig, TResult = void> = {
31
66
  onFinish?: (result?: TResult) => void;
32
67
  /**
33
68
  * Callback invoked when a fatal module error occurs.
69
+ *
70
+ * @param error - Human-readable error message.
71
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
72
+ * the workflow and flow modules on QR validation failures —
73
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
34
74
  */
35
- onError?: (error: string | undefined) => void;
75
+ onError?: (error: string | undefined, errorCode?: number) => void;
36
76
  };
37
77
 
38
- declare type PreloadConfig = {
39
- apiURL: string;
40
- token: string;
41
- lang?: string;
42
- disableDashboardTheme?: boolean;
43
- wasmConfig?: WasmConfig;
78
+ /**
79
+ * Preload runs before the Flow component mounts and only prefetches the flow
80
+ * config + theme — it never burns a urlUuid. Allowing one would silently skip
81
+ * phishing-resistance rotation on mount (the consume path bypasses the init
82
+ * useEffect), so the field is forbidden at the type and runtime boundaries.
83
+ * Topology B (mobile leg of a desktop→mobile redirect) cannot use preload —
84
+ * pass `urlUuid` to `<IncodeFlow>` directly instead.
85
+ */
86
+ declare type PreloadConfig = Omit<TokenFlowRuntimeConfig, 'urlUuid'> & {
87
+ urlUuid?: never;
44
88
  };
45
89
 
46
90
  export declare type PreloadHandle = {
@@ -52,7 +96,13 @@ export declare type PreloadHandle = {
52
96
 
53
97
  export declare function preloadIncodeFlow(config: PreloadConfig): PreloadHandle;
54
98
 
55
- export declare type SpinnerConfig = {
99
+ declare type SelfLoadingFlowRuntimeConfig = FlowBaseConfig & SelfLoadingSessionOptions & (ApiKeySessionBootstrap | ClientIdSessionBootstrap) & {
100
+ token?: never;
101
+ };
102
+
103
+ declare type SelfLoadingSessionOptions = Pick<CreateSessionOptions, 'configurationId' | 'externalId' | 'externalCustomerId' | 'customFields' | 'uuid' | 'urlUuid' | 'interviewId'>;
104
+
105
+ declare type SpinnerConfig = {
56
106
  title?: string;
57
107
  subtitle?: string;
58
108
  size?: SpinnerSize;
@@ -60,6 +110,24 @@ export declare type SpinnerConfig = {
60
110
 
61
111
  declare type SpinnerSize = 'small' | 'medium' | 'large';
62
112
 
113
+ declare type TokenFlowRuntimeConfig = FlowBaseConfig & {
114
+ token: string;
115
+ /** QR anti-phishing token from the incoming URL (mobile leg of a desktop→mobile redirect).
116
+ * When provided, the SDK rotates it on mount via `validateQrUuid` and invokes
117
+ * `onUrlUuidRefreshed` so the host can update the address bar. Validation
118
+ * failures abort initialization via `onError` (with the HTTP status as
119
+ * `errorCode`). */
120
+ urlUuid?: string;
121
+ apiKey?: never;
122
+ clientId?: never;
123
+ configurationId?: never;
124
+ externalId?: never;
125
+ externalCustomerId?: never;
126
+ customFields?: never;
127
+ uuid?: never;
128
+ interviewId?: never;
129
+ };
130
+
63
131
  export { }
64
132
 
65
133
  declare global {
@@ -0,0 +1,41 @@
1
+ import { FC } from 'preact/compat';
2
+ import { GeolocationConfig } from '@incodetech/core/geolocation';
3
+
4
+ declare const Geolocation_2: FC<GeolocationProps>;
5
+ export { Geolocation_2 as Geolocation }
6
+
7
+ declare type GeolocationProps = IncodeModuleProps<GeolocationConfig>;
8
+
9
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
+ /**
11
+ * Module configuration required to render the flow.
12
+ * For Web Components, this is typically assigned via `element.config = ...`.
13
+ */
14
+ config?: TConfig;
15
+ /**
16
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
17
+ */
18
+ manager?: TManager;
19
+ /**
20
+ * Callback invoked when the module completes successfully.
21
+ * @param result - Optional result data from the module completion
22
+ */
23
+ onFinish?: (result?: TResult) => void;
24
+ /**
25
+ * Callback invoked when a fatal module error occurs.
26
+ *
27
+ * @param error - Human-readable error message.
28
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
+ * the workflow and flow modules on QR validation failures —
30
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ */
32
+ onError?: (error: string | undefined, errorCode?: number) => void;
33
+ };
34
+
35
+ export { }
36
+
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ 'incode-geolocation': HTMLElement & IncodeModuleProps<GeolocationConfig>;
40
+ }
41
+ }
@@ -0,0 +1,34 @@
1
+ import { FC } from 'preact/compat';
2
+ import { GovernmentValidationConfig } from '@incodetech/core/government-validation';
3
+
4
+ export declare const GovernmentValidation: FC<GovernmentValidationProps>;
5
+
6
+ declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig>;
7
+
8
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
+ /**
10
+ * Module configuration required to render the flow.
11
+ * For Web Components, this is typically assigned via `element.config = ...`.
12
+ */
13
+ config?: TConfig;
14
+ /**
15
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
16
+ */
17
+ manager?: TManager;
18
+ /**
19
+ * Callback invoked when the module completes successfully.
20
+ * @param result - Optional result data from the module completion
21
+ */
22
+ onFinish?: (result?: TResult) => void;
23
+ /**
24
+ * Callback invoked when a fatal module error occurs.
25
+ *
26
+ * @param error - Human-readable error message.
27
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
+ * the workflow and flow modules on QR validation failures —
29
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ */
31
+ onError?: (error: string | undefined, errorCode?: number) => void;
32
+ };
33
+
34
+ export { }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,40 @@
1
+ import { FC } from 'preact/compat';
2
+ import { IdVerificationConfig } from '@incodetech/core/id-verification';
3
+
4
+ export declare const IdVerification: FC<IdVerificationProps>;
5
+
6
+ declare type IdVerificationProps = IncodeModuleProps<IdVerificationConfig>;
7
+
8
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
+ /**
10
+ * Module configuration required to render the flow.
11
+ * For Web Components, this is typically assigned via `element.config = ...`.
12
+ */
13
+ config?: TConfig;
14
+ /**
15
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
16
+ */
17
+ manager?: TManager;
18
+ /**
19
+ * Callback invoked when the module completes successfully.
20
+ * @param result - Optional result data from the module completion
21
+ */
22
+ onFinish?: (result?: TResult) => void;
23
+ /**
24
+ * Callback invoked when a fatal module error occurs.
25
+ *
26
+ * @param error - Human-readable error message.
27
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
+ * the workflow and flow modules on QR validation failures —
29
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ */
31
+ onError?: (error: string | undefined, errorCode?: number) => void;
32
+ };
33
+
34
+ export { }
35
+
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'incode-id-verification': HTMLElement & IncodeModuleProps<IdVerificationConfig>;
39
+ }
40
+ }
@@ -0,0 +1,41 @@
1
+ import { FC } from 'preact/compat';
2
+ import { IdCaptureConfig } from '@incodetech/core/id';
3
+ import { IdCaptureManager } from '@incodetech/core/id';
4
+
5
+ export declare const Id: FC<IdProps>;
6
+
7
+ declare type IdProps = IncodeModuleProps<IdCaptureConfig, void, IdCaptureManager>;
8
+
9
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
+ /**
11
+ * Module configuration required to render the flow.
12
+ * For Web Components, this is typically assigned via `element.config = ...`.
13
+ */
14
+ config?: TConfig;
15
+ /**
16
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
17
+ */
18
+ manager?: TManager;
19
+ /**
20
+ * Callback invoked when the module completes successfully.
21
+ * @param result - Optional result data from the module completion
22
+ */
23
+ onFinish?: (result?: TResult) => void;
24
+ /**
25
+ * Callback invoked when a fatal module error occurs.
26
+ *
27
+ * @param error - Human-readable error message.
28
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
+ * the workflow and flow modules on QR validation failures —
30
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ */
32
+ onError?: (error: string | undefined, errorCode?: number) => void;
33
+ };
34
+
35
+ export { }
36
+
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ 'incode-id': HTMLElement & IncodeModuleProps<IdCaptureConfig, void, IdCaptureManager>;
40
+ }
41
+ }
@@ -0,0 +1,43 @@
1
+ import { FC } from 'preact/compat';
2
+ import { IdentityReuseConfig } from '@incodetech/core/identity-reuse';
3
+ import { IdentityReuseManager } from '@incodetech/core/identity-reuse';
4
+
5
+ export declare const IdentityReuse: FC<IdentityReuseProps>;
6
+
7
+ declare type IdentityReuseProps = IncodeModuleProps<IdentityReuseConfig, void, IdentityReuseManager>;
8
+
9
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
+ /**
11
+ * Module configuration required to render the flow.
12
+ * For Web Components, this is typically assigned via `element.config = ...`.
13
+ */
14
+ config?: TConfig;
15
+ /**
16
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
17
+ */
18
+ manager?: TManager;
19
+ /**
20
+ * Callback invoked when the module completes successfully.
21
+ * @param result - Optional result data from the module completion
22
+ */
23
+ onFinish?: (result?: TResult) => void;
24
+ /**
25
+ * Callback invoked when a fatal module error occurs.
26
+ *
27
+ * @param error - Human-readable error message.
28
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
+ * the workflow and flow modules on QR validation failures —
30
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ */
32
+ onError?: (error: string | undefined, errorCode?: number) => void;
33
+ };
34
+
35
+ export { }
36
+
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ 'incode-identity-reuse': HTMLElement & IncodeModuleProps<IdentityReuseConfig,
40
+ void,
41
+ IdentityReuseManagerType>;
42
+ }
43
+ }
@@ -1,11 +1,8 @@
1
- import { WasmConfig } from '@incodetech/core';
1
+ import { DEFAULT_WASM_VERSION } from '@incodetech/core/wasm';
2
+ import { I18nOptions } from './setup';
3
+ import { WasmConfig } from '@incodetech/core/wasm';
2
4
 
3
- declare type I18nOptions = {
4
- lang?: string;
5
- translations?: Translations;
6
- };
7
-
8
- declare type LanguageTranslations = Record<string, TranslationValue>;
5
+ export { DEFAULT_WASM_VERSION }
9
6
 
10
7
  /**
11
8
  * Sets global UI configuration defaults for `@incodetech/ui`.
@@ -19,18 +16,15 @@ declare type SetupOptions = {
19
16
  token: string;
20
17
  customHeaders?: Record<string, string>;
21
18
  timeout?: number;
22
- wasm?: WasmConfig;
19
+ wasm?: WasmConfig | false;
23
20
  i18n?: I18nOptions;
24
21
  uiConfig?: UiConfig;
25
22
  };
26
23
 
27
- declare type Translations = Partial<Record<string, LanguageTranslations>>;
28
-
29
- declare type TranslationValue = string | Record<string, unknown>;
30
-
31
24
  export declare type UiConfig = {
32
25
  logoSrc?: string;
33
26
  logoHeight?: string;
27
+ subtitle?: string;
34
28
  hideHeader?: boolean;
35
29
  hideFooterBranding?: boolean;
36
30
  };
@@ -0,0 +1 @@
1
+ export {}
@@ -1,12 +1,17 @@
1
1
  import { FC } from 'preact/compat';
2
2
  import { PhoneConfig } from '@incodetech/core/phone';
3
+ import { PhoneManager } from '@incodetech/core/phone';
3
4
 
4
- declare type IncodeModuleProps<TConfig, TResult = void> = {
5
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
6
  /**
6
7
  * Module configuration required to render the flow.
7
8
  * For Web Components, this is typically assigned via `element.config = ...`.
8
9
  */
9
10
  config?: TConfig;
11
+ /**
12
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
13
+ */
14
+ manager?: TManager;
10
15
  /**
11
16
  * Callback invoked when the module completes successfully.
12
17
  * @param result - Optional result data from the module completion
@@ -14,8 +19,13 @@ declare type IncodeModuleProps<TConfig, TResult = void> = {
14
19
  onFinish?: (result?: TResult) => void;
15
20
  /**
16
21
  * Callback invoked when a fatal module error occurs.
22
+ *
23
+ * @param error - Human-readable error message.
24
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
25
+ * the workflow and flow modules on QR validation failures —
26
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
17
27
  */
18
- onError?: (error: string | undefined) => void;
28
+ onError?: (error: string | undefined, errorCode?: number) => void;
19
29
  };
20
30
 
21
31
  /**
@@ -47,12 +57,12 @@ export declare const Phone: FC<PhoneProps>;
47
57
  /**
48
58
  * Props for the Phone component
49
59
  */
50
- declare type PhoneProps = IncodeModuleProps<PhoneConfig>;
60
+ declare type PhoneProps = IncodeModuleProps<PhoneConfig, void, PhoneManager>;
51
61
 
52
62
  export { }
53
63
 
54
64
  declare global {
55
65
  interface HTMLElementTagNameMap {
56
- 'incode-phone': HTMLElement & IncodeModuleProps<PhoneConfig>;
66
+ 'incode-phone': HTMLElement & IncodeModuleProps<PhoneConfig, void, PhoneManager>;
57
67
  }
58
68
  }
@@ -0,0 +1,40 @@
1
+ import { FC } from 'preact/compat';
2
+ import { QeSignatureConfig } from '@incodetech/core/qe-signature';
3
+
4
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
+ /**
6
+ * Module configuration required to render the flow.
7
+ * For Web Components, this is typically assigned via `element.config = ...`.
8
+ */
9
+ config?: TConfig;
10
+ /**
11
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
12
+ */
13
+ manager?: TManager;
14
+ /**
15
+ * Callback invoked when the module completes successfully.
16
+ * @param result - Optional result data from the module completion
17
+ */
18
+ onFinish?: (result?: TResult) => void;
19
+ /**
20
+ * Callback invoked when a fatal module error occurs.
21
+ *
22
+ * @param error - Human-readable error message.
23
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
24
+ * the workflow and flow modules on QR validation failures —
25
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
26
+ */
27
+ onError?: (error: string | undefined, errorCode?: number) => void;
28
+ };
29
+
30
+ export declare const QeSignature: FC<QeSignatureModuleProps>;
31
+
32
+ declare type QeSignatureModuleProps = IncodeModuleProps<QeSignatureConfig>;
33
+
34
+ export { }
35
+
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'incode-qe-signature': HTMLElement & IncodeModuleProps<QeSignatureConfig>;
39
+ }
40
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -1,12 +1,17 @@
1
1
  import { FC } from 'preact/compat';
2
2
  import { SelfieConfig } from '@incodetech/core/selfie';
3
+ import { SelfieManager } from '@incodetech/core/selfie';
3
4
 
4
- declare type IncodeModuleProps<TConfig, TResult = void> = {
5
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
6
  /**
6
7
  * Module configuration required to render the flow.
7
8
  * For Web Components, this is typically assigned via `element.config = ...`.
8
9
  */
9
10
  config?: TConfig;
11
+ /**
12
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
13
+ */
14
+ manager?: TManager;
10
15
  /**
11
16
  * Callback invoked when the module completes successfully.
12
17
  * @param result - Optional result data from the module completion
@@ -14,18 +19,23 @@ declare type IncodeModuleProps<TConfig, TResult = void> = {
14
19
  onFinish?: (result?: TResult) => void;
15
20
  /**
16
21
  * Callback invoked when a fatal module error occurs.
22
+ *
23
+ * @param error - Human-readable error message.
24
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
25
+ * the workflow and flow modules on QR validation failures —
26
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
17
27
  */
18
- onError?: (error: string | undefined) => void;
28
+ onError?: (error: string | undefined, errorCode?: number) => void;
19
29
  };
20
30
 
21
31
  export declare const Selfie: FC<SelfieProps>;
22
32
 
23
- declare type SelfieProps = IncodeModuleProps<SelfieConfig>;
33
+ declare type SelfieProps = IncodeModuleProps<SelfieConfig, void, SelfieManager>;
24
34
 
25
35
  export { }
26
36
 
27
37
  declare global {
28
38
  interface HTMLElementTagNameMap {
29
- 'incode-selfie': HTMLElement & IncodeModuleProps<SelfieConfig>;
39
+ 'incode-selfie': HTMLElement & IncodeModuleProps<SelfieConfig, void, SelfieManager>;
30
40
  }
31
41
  }
@@ -0,0 +1,40 @@
1
+ import { FC } from 'preact/compat';
2
+ import { SignatureConfig } from '@incodetech/core/signature';
3
+
4
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
+ /**
6
+ * Module configuration required to render the flow.
7
+ * For Web Components, this is typically assigned via `element.config = ...`.
8
+ */
9
+ config?: TConfig;
10
+ /**
11
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
12
+ */
13
+ manager?: TManager;
14
+ /**
15
+ * Callback invoked when the module completes successfully.
16
+ * @param result - Optional result data from the module completion
17
+ */
18
+ onFinish?: (result?: TResult) => void;
19
+ /**
20
+ * Callback invoked when a fatal module error occurs.
21
+ *
22
+ * @param error - Human-readable error message.
23
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
24
+ * the workflow and flow modules on QR validation failures —
25
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
26
+ */
27
+ onError?: (error: string | undefined, errorCode?: number) => void;
28
+ };
29
+
30
+ export declare const Signature: FC<SignatureProps>;
31
+
32
+ declare type SignatureProps = IncodeModuleProps<SignatureConfig>;
33
+
34
+ export { }
35
+
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'incode-signature': HTMLElement & IncodeModuleProps<SignatureConfig>;
39
+ }
40
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,40 @@
1
+ import { FC } from 'preact/compat';
2
+ import { WatchlistConfig } from '@incodetech/core/watchlist';
3
+
4
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
+ /**
6
+ * Module configuration required to render the flow.
7
+ * For Web Components, this is typically assigned via `element.config = ...`.
8
+ */
9
+ config?: TConfig;
10
+ /**
11
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
12
+ */
13
+ manager?: TManager;
14
+ /**
15
+ * Callback invoked when the module completes successfully.
16
+ * @param result - Optional result data from the module completion
17
+ */
18
+ onFinish?: (result?: TResult) => void;
19
+ /**
20
+ * Callback invoked when a fatal module error occurs.
21
+ *
22
+ * @param error - Human-readable error message.
23
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
24
+ * the workflow and flow modules on QR validation failures —
25
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
26
+ */
27
+ onError?: (error: string | undefined, errorCode?: number) => void;
28
+ };
29
+
30
+ export declare const Watchlist: FC<WatchlistProps>;
31
+
32
+ declare type WatchlistProps = IncodeModuleProps<WatchlistConfig>;
33
+
34
+ export { }
35
+
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'incode-watchlist': HTMLElement & IncodeModuleProps<WatchlistConfig>;
39
+ }
40
+ }