@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.
- package/dist/ae-signature/ae-signature.es.js +15 -0
- package/dist/ae-signature/styles.css +348 -0
- package/dist/ae-signature/styles2.css +107 -0
- package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
- package/dist/antifraud/antifraud.es.js +18 -0
- package/dist/antifraud/styles.css +2 -0
- package/dist/authentication/authentication.es.js +29 -0
- package/dist/autoFocusTitle-QexamZ4i.js +16 -0
- package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
- package/dist/back-tutorial-1NOQobGO.js +14585 -0
- package/dist/back-vertical-hint-BBo36dxn.js +128 -0
- package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
- package/dist/base.css +5218 -639
- package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
- package/dist/bottomSheet-DE_8TFEC.js +31 -0
- package/dist/browser-ponyfill-jOkuz57z.js +299 -0
- package/dist/button-DcCUEn2n.js +24 -0
- package/dist/checkbox-Cl57ltq_.js +85 -0
- package/dist/consent/consent.es.js +90 -0
- package/dist/consent/styles.css +116 -0
- package/dist/countrySelector-CE-JgIsv.js +58 -0
- package/dist/cpf-ocr/styles.css +45 -0
- package/dist/cpfOcr-D_tbwbvh.js +78 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
- package/dist/curp-validation/curp-validation.es.js +279 -0
- package/dist/curp-validation/styles.css +82 -0
- package/dist/custom-fields/styles.css +22 -0
- package/dist/customFields-CW38fQUv.js +127 -0
- package/dist/customWatchlist-D9_yjEQd.js +33 -0
- package/dist/dateInputComposed-BpAGsjN6.js +55 -0
- package/dist/dateInputComposed-DU3o6PAV.js +1 -0
- package/dist/defineProperty-Dh8nSJpJ.js +39 -0
- package/dist/document-capture/styles.css +367 -0
- package/dist/documentCapture-xX-JT7ZY.js +763 -0
- package/dist/dropdownComposed-DFRBG22E.js +284 -0
- package/dist/dropdownComposed-DwTzc2YU.js +1 -0
- package/dist/dynamic-forms/styles.css +36 -0
- package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
- package/dist/ekyb/ekyb.es.js +2 -0
- package/dist/ekyb/styles.css +137 -0
- package/dist/ekybModule-BSs7mndb.js +280 -0
- package/dist/ekybModule-D9M3E2Gm.js +2 -0
- package/dist/ekyc/ekyc.es.js +2 -0
- package/dist/ekyc/styles.css +106 -0
- package/dist/ekycModule-CU9pt5YN.js +246 -0
- package/dist/ekycModule-CZw9cLno.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +2 -0
- package/dist/electronic-signature-COYXjGdd.js +410 -0
- package/dist/email/email.es.js +87 -145
- package/dist/email/styles.css +5 -116
- package/dist/emailInput-DppGf9pv.js +37 -0
- package/dist/expiredId-BnmzE8T3.js +70 -0
- package/dist/extensibility-CzEJfRwo.js +2586 -0
- package/dist/extensibility.es.js +25 -0
- package/dist/face-match/face-match.es.js +2 -0
- package/dist/face-match/styles.css +910 -0
- package/dist/faceMatch-B8j0g0Yo.js +2 -0
- package/dist/faceMatch-BV8UD7tj.js +201 -0
- package/dist/flip-animation-CgwRsEmK.js +6983 -0
- package/dist/flow/flow.es.js +646 -542
- package/dist/flow/styles.css +4524 -440
- package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
- package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
- package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
- package/dist/geolocation/geolocation.es.js +857 -0
- package/dist/geolocation/styles.css +158 -0
- package/dist/glaredevicelottie-B10axYs_.js +14466 -0
- package/dist/governmentValidation/governmentValidation.es.js +98 -0
- package/dist/governmentValidation/styles.css +58 -0
- package/dist/homeScreen-DnP1jw9A.js +227 -0
- package/dist/hooks-BVnGysT7.js +80 -0
- package/dist/i18n-9s4OSqwi.js +2010 -0
- package/dist/icons-Cc7zwchP.js +310 -0
- package/dist/id/id.es.js +832 -0
- package/dist/id/styles.css +1287 -0
- package/dist/id-laser-h-mBAzHVOK.js +467 -0
- package/dist/id-laser-v-CrFg4bcJ.js +483 -0
- package/dist/id-ocr/styles.css +46 -0
- package/dist/id-tutorial-BCr42Pnn.js +13153 -0
- package/dist/id-verification/id-verification.es.js +20 -0
- package/dist/idOcr-CCjfWQvH.js +94 -0
- package/dist/identity-reuse/identity-reuse.es.js +198 -0
- package/dist/identity-reuse/styles.css +163 -0
- package/dist/incode-logo-DX016usY.js +4 -0
- package/dist/incodeComponent-C1o4M0ZK.js +50 -0
- package/dist/incodeModule-BqCjVgEI.js +18 -0
- package/dist/index.es.js +16 -6
- package/dist/inputComposed-APSw8C7o.js +89 -0
- package/dist/inputComposed-XYrarFxS.js +1 -0
- package/dist/loadingIcon-BN5YRQUb.js +104 -0
- package/dist/mandatoryConsent-DssKMC3v.js +100 -0
- package/dist/modal-NMxsQHAO.js +135 -0
- package/dist/modal.hooks-CAjcIFZK.js +126 -0
- package/dist/numberedStep-CT-alrK5.js +11 -0
- package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
- package/dist/otpInput-DqRA_egd.js +145 -0
- package/dist/page-C1yT4DLb.js +69 -0
- package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
- package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
- package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
- package/dist/pdf-BurGZ08w.js +14967 -0
- package/dist/pdfViewer-BGBNL1Ea.js +63 -0
- package/dist/phone/phone.es.js +98 -3441
- package/dist/phone/styles.css +3 -297
- package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
- package/dist/processing-G_y3o32b.js +6 -0
- package/dist/qe-signature/qe-signature.es.js +15 -0
- package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
- package/dist/redirect-to-mobile/styles.css +588 -0
- package/dist/redirectToMobile-C3k1gloW.js +1514 -0
- package/dist/requiredLabelHint-BLwgqozE.js +13 -0
- package/dist/richText-DbJ5sl2n.js +1973 -0
- package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
- package/dist/selfie/selfie.es.js +42 -892
- package/dist/selfie/styles.css +298 -184
- package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
- package/dist/signature/signature.es.js +546 -0
- package/dist/snackbar-BDp8x7Cv.js +14 -0
- package/dist/spinner-B4dcie2T.js +1 -0
- package/dist/spinner-CKnjVHxw.js +39 -0
- package/dist/statusPage-CUI7ApcU.js +28 -0
- package/dist/successIcon-DbILeIz_.js +28 -0
- package/dist/tabs-DaPyP71c.js +78 -0
- package/dist/themes/dark.css +846 -151
- package/dist/themes/light.css +798 -116
- package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
- package/dist/tutorial-9vHAHvMK.js +2587 -0
- package/dist/types/ae-signature.d.ts +40 -0
- package/dist/types/antifraud.d.ts +40 -0
- package/dist/types/authentication.d.ts +45 -0
- package/dist/types/consent.d.ts +41 -0
- package/dist/types/cpf-ocr/styles.d.ts +1 -0
- package/dist/types/cross-document-data-match.d.ts +34 -0
- package/dist/types/curp-validation.d.ts +40 -0
- package/dist/types/custom-fields/styles.d.ts +1 -0
- package/dist/types/document-capture/styles.d.ts +1 -0
- package/dist/types/dynamic-forms/styles.d.ts +1 -0
- package/dist/types/ekyb.d.ts +34 -0
- package/dist/types/ekyc.d.ts +34 -0
- package/dist/types/electronic-signature.d.ts +43 -0
- package/dist/types/email.d.ts +14 -4
- package/dist/types/extensibility.d.ts +981 -0
- package/dist/types/face-match.d.ts +59 -0
- package/dist/types/flow.d.ts +81 -13
- package/dist/types/geolocation.d.ts +41 -0
- package/dist/types/governmentValidation.d.ts +34 -0
- package/dist/types/id-ocr/styles.d.ts +1 -0
- package/dist/types/id-verification.d.ts +40 -0
- package/dist/types/id.d.ts +41 -0
- package/dist/types/identity-reuse.d.ts +43 -0
- package/dist/types/index.d.ts +6 -12
- package/dist/types/mandatory-consent/styles.d.ts +1 -0
- package/dist/types/phone.d.ts +14 -4
- package/dist/types/qe-signature.d.ts +40 -0
- package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
- package/dist/types/selfie.d.ts +14 -4
- package/dist/types/signature.d.ts +40 -0
- package/dist/types/watchlist-for-business/styles.d.ts +1 -0
- package/dist/types/watchlist.d.ts +40 -0
- package/dist/types/workflow.d.ts +91 -0
- package/dist/typography-CxjaknHN.js +28 -0
- package/dist/uiConfig-CwpQ-IM6.js +20 -0
- package/dist/useModuleLoader-BFiVA41N.js +432 -0
- package/dist/vendor-preact-D6SntenC.js +958 -0
- package/dist/verificationResult-BrVbUJ4U.js +97 -0
- package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
- package/dist/watchlist/watchlist.es.js +33 -0
- package/dist/watchlist-for-business/styles.css +18 -0
- package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
- package/dist/workflow/styles.css +4612 -0
- package/dist/workflow/workflow.es.js +244 -0
- package/package.json +211 -15
- package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
- package/dist/incodeModule-Dv8Qllrv.js +0 -254
- package/dist/instance-B-q0ZREN.js +0 -2140
- package/dist/otpInput-BtoZe0Wz.js +0 -151
- package/dist/page-D9ijzlSn.js +0 -234
- package/dist/selfieTutorial-C-u5GufD.js +0 -29
- package/dist/setup-wNL83jmW.js +0 -20
- package/dist/title-BfO5Dlzk.js +0 -25
- package/dist/uiConfig-CQ1W9cUD.js +0 -23
- package/dist/vendor-preact-CK0WeTOR.js +0 -584
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AeSignatureConfig } from '@incodetech/core/ae-signature';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
export declare const AeSignature: FC<AeSignatureModuleProps>;
|
|
5
|
+
|
|
6
|
+
declare type AeSignatureModuleProps = IncodeModuleProps<AeSignatureConfig>;
|
|
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-ae-signature': HTMLElement & IncodeModuleProps<AeSignatureConfig>;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AntifraudConfig } from '@incodetech/core/antifraud';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
export declare const Antifraud: FC<AntifraudProps>;
|
|
5
|
+
|
|
6
|
+
declare type AntifraudProps = IncodeModuleProps<AntifraudConfig>;
|
|
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-antifraud': HTMLElement & IncodeModuleProps<AntifraudConfig>;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AuthenticationConfig } from '@incodetech/core/authentication';
|
|
2
|
+
import { AuthenticationManager } from '@incodetech/core/authentication';
|
|
3
|
+
import { FC } from 'preact/compat';
|
|
4
|
+
|
|
5
|
+
export declare const Authentication: FC<AuthenticationProps>;
|
|
6
|
+
|
|
7
|
+
declare type AuthenticationProps = IncodeModuleProps<AuthenticationConfig & {
|
|
8
|
+
authHint?: string;
|
|
9
|
+
}, void, AuthenticationManager>;
|
|
10
|
+
|
|
11
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
12
|
+
/**
|
|
13
|
+
* Module configuration required to render the flow.
|
|
14
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
15
|
+
*/
|
|
16
|
+
config?: TConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
19
|
+
*/
|
|
20
|
+
manager?: TManager;
|
|
21
|
+
/**
|
|
22
|
+
* Callback invoked when the module completes successfully.
|
|
23
|
+
* @param result - Optional result data from the module completion
|
|
24
|
+
*/
|
|
25
|
+
onFinish?: (result?: TResult) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Callback invoked when a fatal module error occurs.
|
|
28
|
+
*
|
|
29
|
+
* @param error - Human-readable error message.
|
|
30
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
31
|
+
* the workflow and flow modules on QR validation failures —
|
|
32
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
33
|
+
*/
|
|
34
|
+
onError?: (error: string | undefined, errorCode?: number) => void;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { }
|
|
38
|
+
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
'incode-authentication': HTMLElement & IncodeModuleProps<AuthenticationConfig & { authHint?: string },
|
|
42
|
+
void,
|
|
43
|
+
AuthenticationManager>;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ConsentConfig } from '@incodetech/core/consent';
|
|
2
|
+
import { ConsentManager } from '@incodetech/core/consent';
|
|
3
|
+
import { FC } from 'preact/compat';
|
|
4
|
+
|
|
5
|
+
export declare const Consent: FC<ConsentProps>;
|
|
6
|
+
|
|
7
|
+
declare type ConsentProps = IncodeModuleProps<ConsentConfig, void, ConsentManager>;
|
|
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-consent': HTMLElement & IncodeModuleProps<ConsentConfig, void, ConsentManager>;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CrossDocumentDataMatchConfig } from '@incodetech/core/cross-document-data-match';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
export declare const CrossDocumentDataMatch: FC<CrossDocumentDataMatchProps>;
|
|
5
|
+
|
|
6
|
+
declare type CrossDocumentDataMatchProps = IncodeModuleProps<CrossDocumentDataMatchConfig>;
|
|
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,40 @@
|
|
|
1
|
+
import { CurpValidationConfig } from '@incodetech/core/curp-validation';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
export declare const CurpValidation: FC<CurpValidationProps>;
|
|
5
|
+
|
|
6
|
+
declare type CurpValidationProps = IncodeModuleProps<CurpValidationConfig>;
|
|
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-curp-validation': HTMLElement & IncodeModuleProps<CurpValidationConfig>;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EkybConfig } from '@incodetech/core/ekyb';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
export declare const EkybModule: FC<EkybModuleProps>;
|
|
5
|
+
|
|
6
|
+
declare type EkybModuleProps = IncodeModuleProps<EkybConfig>;
|
|
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,34 @@
|
|
|
1
|
+
import { EkycConfig } from '@incodetech/core/ekyc';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
export declare const EkycModule: FC<EkycModuleProps>;
|
|
5
|
+
|
|
6
|
+
declare type EkycModuleProps = IncodeModuleProps<EkycConfig>;
|
|
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,43 @@
|
|
|
1
|
+
import { ElectronicSignatureConfig } from '@incodetech/core/electronic-signature';
|
|
2
|
+
import { FC } from 'preact/compat';
|
|
3
|
+
|
|
4
|
+
/** @deprecated Use {@link ElectronicSignature} */
|
|
5
|
+
export declare const AeSignature: FC<ElectronicSignatureModuleProps>;
|
|
6
|
+
|
|
7
|
+
export declare const ElectronicSignature: FC<ElectronicSignatureModuleProps>;
|
|
8
|
+
|
|
9
|
+
declare type ElectronicSignatureModuleProps = IncodeModuleProps<ElectronicSignatureConfig>;
|
|
10
|
+
|
|
11
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
12
|
+
/**
|
|
13
|
+
* Module configuration required to render the flow.
|
|
14
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
15
|
+
*/
|
|
16
|
+
config?: TConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
19
|
+
*/
|
|
20
|
+
manager?: TManager;
|
|
21
|
+
/**
|
|
22
|
+
* Callback invoked when the module completes successfully.
|
|
23
|
+
* @param result - Optional result data from the module completion
|
|
24
|
+
*/
|
|
25
|
+
onFinish?: (result?: TResult) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Callback invoked when a fatal module error occurs.
|
|
28
|
+
*
|
|
29
|
+
* @param error - Human-readable error message.
|
|
30
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
31
|
+
* the workflow and flow modules on QR validation failures —
|
|
32
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
33
|
+
*/
|
|
34
|
+
onError?: (error: string | undefined, errorCode?: number) => void;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { }
|
|
38
|
+
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
'incode-electronic-signature': HTMLElement & IncodeModuleProps<ElectronicSignatureConfig>;
|
|
42
|
+
}
|
|
43
|
+
}
|
package/dist/types/email.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EmailConfig } from '@incodetech/core/email';
|
|
2
|
+
import { EmailManager } from '@incodetech/core/email';
|
|
2
3
|
import { FC } from 'preact/compat';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -29,14 +30,18 @@ export declare const Email: FC<EmailProps>;
|
|
|
29
30
|
/**
|
|
30
31
|
* Props for the Email component
|
|
31
32
|
*/
|
|
32
|
-
declare type EmailProps = IncodeModuleProps<EmailConfig>;
|
|
33
|
+
declare type EmailProps = IncodeModuleProps<EmailConfig, void, EmailManager>;
|
|
33
34
|
|
|
34
|
-
declare type IncodeModuleProps<TConfig, TResult = void> = {
|
|
35
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
35
36
|
/**
|
|
36
37
|
* Module configuration required to render the flow.
|
|
37
38
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
38
39
|
*/
|
|
39
40
|
config?: TConfig;
|
|
41
|
+
/**
|
|
42
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
43
|
+
*/
|
|
44
|
+
manager?: TManager;
|
|
40
45
|
/**
|
|
41
46
|
* Callback invoked when the module completes successfully.
|
|
42
47
|
* @param result - Optional result data from the module completion
|
|
@@ -44,14 +49,19 @@ declare type IncodeModuleProps<TConfig, TResult = void> = {
|
|
|
44
49
|
onFinish?: (result?: TResult) => void;
|
|
45
50
|
/**
|
|
46
51
|
* Callback invoked when a fatal module error occurs.
|
|
52
|
+
*
|
|
53
|
+
* @param error - Human-readable error message.
|
|
54
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
55
|
+
* the workflow and flow modules on QR validation failures —
|
|
56
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
47
57
|
*/
|
|
48
|
-
onError?: (error: string | undefined) => void;
|
|
58
|
+
onError?: (error: string | undefined, errorCode?: number) => void;
|
|
49
59
|
};
|
|
50
60
|
|
|
51
61
|
export { }
|
|
52
62
|
|
|
53
63
|
declare global {
|
|
54
64
|
interface HTMLElementTagNameMap {
|
|
55
|
-
'incode-email': HTMLElement & IncodeModuleProps<EmailConfig>;
|
|
65
|
+
'incode-email': HTMLElement & IncodeModuleProps<EmailConfig, void, EmailManager>;
|
|
56
66
|
}
|
|
57
67
|
}
|