@incodetech/web 0.0.0-dev-20260723-e73d5099 → 0.0.0-dev-20260723-397b76d8
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 +5 -3
- package/dist/antifraud/antifraud.es.js +6 -5
- package/dist/authentication/authentication.es.js +7 -6
- package/dist/{autoFocusTitle-IN4TR7QN.js → autoFocusTitle-DIuy3fAL.js} +1 -1
- package/dist/{bottomSheet-DIxxFBUN.js → bottomSheet-DLa3gA9I.js} +1 -1
- package/dist/{captureNotification-DatgEL_T.js → captureNotification-CYNo5vI6.js} +8 -8
- package/dist/certificate-issuance/certificate-issuance.es.js +13 -13
- package/dist/{checkbox-BZ3Vuawq.js → checkbox-CWH3awlJ.js} +3 -3
- package/dist/{connectionError-BILGlQvh.js → connectionError-CkMyPEEa.js} +3 -3
- package/dist/consent/consent.es.js +10 -11
- package/dist/{countrySelector-DSCcBRMz.js → countrySelector-7r0JHTbz.js} +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/{cpfOcr-DCIXCw5X.js → cpfOcr-C7oATNXA.js} +9 -10
- package/dist/cpfOcr-O8X5O6z1.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +6 -5
- package/dist/curp-validation/curp-validation.es.js +17 -19
- package/dist/{customFields-CFRWCs3I.js → customFields-BgFMUeIp.js} +13 -13
- package/dist/{customWatchlist-CAGzLeIU.js → customWatchlist-DMz7aerw.js} +9 -8
- package/dist/dashboardTheme-C6I2WQPK.js +223 -0
- package/dist/dateInputComposed-6wvZi6m1.js +1 -0
- package/dist/{dateInputComposed-Dy8s_pst.js → dateInputComposed-BBgQB4tl.js} +4 -4
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-Cdksl5DR.js → documentCapture-BC6DBpAG.js} +19 -19
- package/dist/documentCapture-diUvht9m.js +2 -0
- package/dist/{dropdownComposed-BHoaSeXB.js → dropdownComposed-C0IZ1uRF.js} +4 -4
- package/dist/dropdownComposed-DBnwuqE4.js +1 -0
- package/dist/{dynamicForms-CujcVUvG.js → dynamicForms-skhwHeCx.js} +14 -14
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-CtJT7I0D.js → ekybModule-bGDvjIj7.js} +17 -17
- package/dist/ekybModule-bUgBSy9a.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-D-ZKad8r.js +2 -0
- package/dist/{ekycModule-Clgu1ydz.js → ekycModule-DVVAasG2.js} +15 -15
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-C-eiNR8V.js → electronic-signature-Dy0hN6lu.js} +11 -12
- package/dist/email/email.es.js +10 -10
- package/dist/{emailInput-BIXyslAC.js → emailInput-CGDc3flM.js} +3 -3
- package/dist/{expiredId-DE_SO8Iy.js → expiredId-CDxPLhiW.js} +5 -5
- package/dist/{extensibility-Dv0Z50OE.js → extensibility-DMroM1OU.js} +37 -42
- package/dist/extensibility.es.js +24 -28
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-DxRtNWtc.js +2 -0
- package/dist/{faceMatch-DVkAPLup.js → faceMatch-si9UUQ3_.js} +10 -11
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-BbgIcdF5.js → fieldComparison-CR15MASU.js} +11 -11
- package/dist/fieldComparison-MLm7cnmM.js +2 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +12 -11
- package/dist/flow/flow.es.js +10 -13
- package/dist/geolocation/geolocation.es.js +11 -11
- package/dist/government-validation/government-validation.es.js +11 -11
- package/dist/{homeScreen-CqhuW7le.js → homeScreen-0T3uPq2I.js} +6 -8
- package/dist/{page-DidH_RkX.js → hooks-Bl4BccV8.js} +374 -5
- package/dist/{icons-w6luRFtW.js → icons-CqDMnQ1g.js} +2 -2
- package/dist/id/id.es.js +22 -25
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-Y8dKRIN4.js → idOcr-C9Cj1ino.js} +13 -13
- package/dist/identity-reuse/identity-reuse.es.js +6 -7
- package/dist/{incode-logo-57XFniXU.js → incode-logo-DasIBJw8.js} +64 -1
- package/dist/{incodeComponent-BCd_bJev.js → incodeComponent-DHbfYA-r.js} +2 -2
- package/dist/{incodeModule-Bgg06vwW.js → incodeModule-BiwGYtcv.js} +1 -1
- package/dist/index.es.js +14 -5
- package/dist/{inputComposed-DzyxybSu.js → inputComposed-C1Z4OxHI.js} +4 -4
- package/dist/inputComposed-DL1YD59E.js +1 -0
- package/dist/{mandatoryConsent-DnoDgtOT.js → mandatoryConsent-DEGcSJhx.js} +9 -10
- package/dist/{modal-C-Q9km3s.js → modal-BgjeiOv5.js} +3 -3
- package/dist/{optionAccessibleLabel-RW68xECf.js → optionAccessibleLabel-DAvz9vdG.js} +5 -5
- package/dist/{otpInput-H_Y9R8B8.js → otpInput-DLnLXnJo.js} +5 -5
- package/dist/{pdf-BAb2ezmC.js → pdf-BYHLDKvG.js} +1 -1
- package/dist/{pdfViewer-XeOSCt-S.js → pdfViewer-BVnrfnFA.js} +3 -3
- package/dist/{permissions-J6qPq98P.js → permissions-Bcn-2yHb.js} +9 -11
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-DaBNd-wY.js → phoneInputComposed-CJavLkBe.js} +5 -5
- package/dist/{processing-BN2Mgw0p.js → processing-DBuq4_4J.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +5 -3
- package/dist/{radioGroupComposed-D2qsp3Vx.js → radioGroupComposed-YO_U82bM.js} +5 -5
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +15 -17
- package/dist/{richText-D-G1XXAw.js → richText-Bbp3TPzi.js} +1 -1
- package/dist/selfie/selfie.es.js +9 -9
- package/dist/signature/signature.es.js +11 -11
- package/dist/{snackbar-BsV5S3Z7.js → snackbar-CSODaFW4.js} +1 -1
- package/dist/{loadingIcon-B0ysgiNq.js → spacer-I8ILMQiA.js} +68 -68
- package/dist/{spinner-BMeIEK1d.js → spinner-YXqSOUqg.js} +45 -4
- package/dist/{statusPage-DPNU-L3H.js → statusPage-DUejG583.js} +3 -3
- package/dist/{tabs-CYtIZmR0.js → tabs-CG7W9rbn.js} +1 -1
- package/dist/{tutorial-CTCp3mrv.js → tutorial-hXqxb0q5.js} +10 -12
- package/dist/types/ae-signature.d.ts +6 -3
- package/dist/types/antifraud.d.ts +6 -3
- package/dist/types/authentication.d.ts +6 -3
- package/dist/types/certificate-issuance.d.ts +6 -3
- package/dist/types/consent.d.ts +6 -3
- package/dist/types/cpf-ocr.d.ts +56 -5
- package/dist/types/cross-document-data-match.d.ts +6 -3
- package/dist/types/curp-validation.d.ts +6 -3
- package/dist/types/document-capture.d.ts +6 -3
- package/dist/types/ekyb.d.ts +6 -3
- package/dist/types/ekyc.d.ts +6 -3
- package/dist/types/electronic-signature.d.ts +2 -2
- package/dist/types/email.d.ts +6 -26
- package/dist/types/extensibility.d.ts +2 -2
- package/dist/types/face-match.d.ts +6 -25
- package/dist/types/field-comparison.d.ts +6 -3
- package/dist/types/fiscal-qr.d.ts +9 -5
- package/dist/types/flow.d.ts +2 -2
- package/dist/types/geolocation.d.ts +6 -3
- package/dist/types/government-validation.d.ts +6 -3
- package/dist/types/id-verification.d.ts +2 -2
- package/dist/types/id.d.ts +6 -3
- package/dist/types/identity-reuse.d.ts +2 -2
- package/dist/types/index.d.ts +23 -1
- package/dist/types/phone.d.ts +6 -27
- package/dist/types/qe-signature.d.ts +6 -3
- package/dist/types/redirect-to-mobile.d.ts +4 -1
- package/dist/types/selfie.d.ts +6 -3
- package/dist/types/signature.d.ts +6 -3
- package/dist/types/video-selfie.d.ts +6 -9
- package/dist/types/watchlist.d.ts +6 -3
- package/dist/types/workflow.d.ts +2 -2
- package/dist/{i18n-CushpmmJ.js → uiConfig-DSGyRMSC.js} +26 -3
- package/dist/{useModuleLoader-BTo4NZuV.js → useModuleLoader-V8kW4raN.js} +32 -180
- package/dist/{verificationResult-xubIOKNi.js → verificationResult-4X7V8KzA.js} +8 -9
- package/dist/video-selfie/video-selfie.es.js +16 -19
- package/dist/watchlist/watchlist.es.js +9 -8
- package/dist/{watchlistForBusiness-BWaVfgeV.js → watchlistForBusiness-DWg7G4IB.js} +12 -12
- package/dist/workflow/workflow.es.js +17 -14
- package/package.json +2 -2
- package/dist/button-Dz6AsbmF.js +0 -40
- package/dist/cpfOcr-BToIikZC.js +0 -2
- package/dist/dateInputComposed-DDtUFSrC.js +0 -1
- package/dist/documentCapture-CgBRyZHX.js +0 -2
- package/dist/dropdownComposed-4RQ6KcIz.js +0 -1
- package/dist/ekybModule-CIhe-NjG.js +0 -2
- package/dist/ekycModule-CYdRFXyJ.js +0 -2
- package/dist/errorIcon-BA4T6iy-.js +0 -26
- package/dist/faceMatch-BnDfDC5l.js +0 -2
- package/dist/fieldComparison-DeH3dh5a.js +0 -2
- package/dist/hooks-CxG4XS7P.js +0 -175
- package/dist/inputComposed-CrmMDnMp.js +0 -1
- package/dist/spinner-BCDCoi9C.js +0 -1
- package/dist/terminalErrorPage-DwH-JDg0.js +0 -71
- package/dist/transitionSpinner-B7mmwUrc.js +0 -30
- package/dist/typography-BZIpjo97.js +0 -45
- package/dist/uiConfig-D2_wawvr.js +0 -25
- /package/dist/{aligndevicelottie-C9Mrj6AB.js → aligndevicelottie-t8IVRvKe.js} +0 -0
- /package/dist/{back-horizontal-hint-B-EHEYFx.js → back-horizontal-hint-Dk3Qx2Jy.js} +0 -0
- /package/dist/{back-tutorial-Bkm8BMI-.js → back-tutorial-Sa9INxfJ.js} +0 -0
- /package/dist/{back-vertical-hint-Yo_1LFB2.js → back-vertical-hint-BSXiELAo.js} +0 -0
- /package/dist/{backdevicelottie-FrU5aQgi.js → backdevicelottie--JZVcmsk.js} +0 -0
- /package/dist/{blurdevicelottie-jfRWrBAA.js → blurdevicelottie-D8d1O-r6.js} +0 -0
- /package/dist/{browser-ponyfill-vwGrGxYJ.js → browser-ponyfill-R_VWu0FU.js} +0 -0
- /package/dist/{defineProperty-BZW5EcGC.js → defineProperty-BsIK7Gws.js} +0 -0
- /package/dist/{flip-animation-RSWxSh3p.js → flip-animation-CulASaCy.js} +0 -0
- /package/dist/{front-horizontal-hint-BxmjB6HQ.js → front-horizontal-hint-GlNgmYkY.js} +0 -0
- /package/dist/{front-vertical-hint-BS4R8Ge4.js → front-vertical-hint-Bn2FOrKQ.js} +0 -0
- /package/dist/{frontdevicelottie-CvMs7jnY.js → frontdevicelottie-DGU1DFsb.js} +0 -0
- /package/dist/{glaredevicelottie-B_g3-Xay.js → glaredevicelottie-Dqjzhp2v.js} +0 -0
- /package/dist/{id-laser-h-DS31CxU-.js → id-laser-h-BXX4SvZX.js} +0 -0
- /package/dist/{id-laser-v-Cb982xnA.js → id-laser-v-BXUywa3r.js} +0 -0
- /package/dist/{id-tutorial-D2hF8yoN.js → id-tutorial-Dss1CIkf.js} +0 -0
- /package/dist/{lottie_light-B0mE6Bs2.js → lottie_light-XgO-x03h.js} +0 -0
- /package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BbFC-AOq.js} +0 -0
- /package/dist/{numberedStep-BOfeDZfJ.js → numberedStep-DtIEG6uM.js} +0 -0
- /package/dist/{passport-horizontal-hint-B0YSV7zH.js → passport-horizontal-hint-C0gW3Rvi.js} +0 -0
- /package/dist/{passport-tutorial-DvynHyve.js → passport-tutorial-B6e9nM9w.js} +0 -0
- /package/dist/{passport-vertical-hint-g5QGlFT5.js → passport-vertical-hint-lrBhacG3.js} +0 -0
- /package/dist/{registerIncodeElement-ClG0mgIF.js → registerIncodeElement-C9y6CNCw.js} +0 -0
- /package/dist/{requiredLabelHint-DmD8ZCH-.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
- /package/dist/{selfieTutorial-eySh67am.js → selfieTutorial-DfjgQ9w5.js} +0 -0
- /package/dist/{successIcon-B5mGvdx1.js → successIcon-BshEyvXA.js} +0 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CertificateIssuanceConfig } from '@incodetech/core/certificate-issuance';
|
|
2
2
|
import { CertificateIssuanceManager } from '@incodetech/core/certificate-issuance';
|
|
3
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
export declare const CertificateIssuance: FC<CertificateIssuanceProps
|
|
6
|
+
export declare const CertificateIssuance: FC<Omit<CertificateIssuanceProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type CertificateIssuanceProps = IncodeModuleProps<CertificateIssuanceConfig> & {
|
|
8
11
|
manager?: CertificateIssuanceManager;
|
|
@@ -28,12 +31,12 @@ declare type IncodeFinishMeta = {
|
|
|
28
31
|
sdkOwnsTerminalScreen?: boolean;
|
|
29
32
|
};
|
|
30
33
|
|
|
31
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
34
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
32
35
|
/**
|
|
33
36
|
* Module configuration required to render the flow.
|
|
34
37
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
35
38
|
*/
|
|
36
|
-
config?:
|
|
39
|
+
config?: TConfigInput;
|
|
37
40
|
/**
|
|
38
41
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
39
42
|
*/
|
package/dist/types/consent.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ConsentConfig } from '@incodetech/core/consent';
|
|
2
2
|
import { ConsentManager } from '@incodetech/core/consent';
|
|
3
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
export declare const Consent: FC<ConsentProps
|
|
6
|
+
export declare const Consent: FC<Omit<ConsentProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type ConsentProps = IncodeModuleProps<ConsentConfig, void, ConsentManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
package/dist/types/cpf-ocr.d.ts
CHANGED
|
@@ -1,12 +1,63 @@
|
|
|
1
1
|
import { CpfOcrManager } from '@incodetech/core/cpf-ocr';
|
|
2
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
2
3
|
import { FC } from 'preact/compat';
|
|
4
|
+
import { FlowModuleConfig } from '@incodetech/core/flow';
|
|
3
5
|
|
|
4
|
-
export declare const CpfOcr: FC<CpfOcrProps
|
|
6
|
+
export declare const CpfOcr: FC<Omit<CpfOcrProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
5
9
|
|
|
6
|
-
declare type CpfOcrProps =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
declare type CpfOcrProps = IncodeModuleProps<FlowModuleConfig['CPF_OCR'], void, CpfOcrManager>;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
14
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
15
|
+
* workflow module sets these fields today.
|
|
16
|
+
*/
|
|
17
|
+
declare type IncodeFinishMeta = {
|
|
18
|
+
/**
|
|
19
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
20
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
21
|
+
* screen), so the host should not render its own completion screen on top.
|
|
22
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
23
|
+
* OAuth parent).
|
|
24
|
+
*
|
|
25
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
26
|
+
* because the host reads this flag — a host that ignores it will still
|
|
27
|
+
* replace the SDK screen. Not a guarantee.
|
|
28
|
+
*/
|
|
29
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
33
|
+
/**
|
|
34
|
+
* Module configuration required to render the flow.
|
|
35
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
36
|
+
*/
|
|
37
|
+
config?: TConfigInput;
|
|
38
|
+
/**
|
|
39
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
40
|
+
*/
|
|
41
|
+
manager?: TManager;
|
|
42
|
+
/**
|
|
43
|
+
* Callback invoked when the module completes successfully.
|
|
44
|
+
* @param result - Optional result data from the module completion
|
|
45
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
46
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
47
|
+
*/
|
|
48
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback invoked when a fatal module error occurs.
|
|
51
|
+
*
|
|
52
|
+
* @param error - Human-readable error message.
|
|
53
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
54
|
+
* the workflow and flow modules on QR validation failures —
|
|
55
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
56
|
+
* @param moduleErrorCode - Optional machine-readable error code (e.g. a
|
|
57
|
+
* `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
|
|
58
|
+
* branch on the specific terminal error without parsing the message string.
|
|
59
|
+
*/
|
|
60
|
+
onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
|
|
10
61
|
};
|
|
11
62
|
|
|
12
63
|
export { }
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CrossDocumentDataMatchConfig } from '@incodetech/core/cross-document-data-match';
|
|
2
2
|
import { CrossDocumentDataMatchManager } from '@incodetech/core/cross-document-data-match';
|
|
3
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
export declare const CrossDocumentDataMatch: FC<CrossDocumentDataMatchProps
|
|
6
|
+
export declare const CrossDocumentDataMatch: FC<Omit<CrossDocumentDataMatchProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type CrossDocumentDataMatchProps = IncodeModuleProps<CrossDocumentDataMatchConfig, void, CrossDocumentDataMatchManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CurpValidationConfig } from '@incodetech/core/curp-validation';
|
|
2
2
|
import { CurpValidationManager } from '@incodetech/core/curp-validation';
|
|
3
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
export declare const CurpValidation: FC<CurpValidationProps
|
|
6
|
+
export declare const CurpValidation: FC<Omit<CurpValidationProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type CurpValidationProps = IncodeModuleProps<CurpValidationConfig, void, CurpValidationManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { DocumentCaptureConfig } from '@incodetech/core/document-capture';
|
|
2
3
|
import { DocumentCaptureManager } from '@incodetech/core/document-capture';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
export declare const DocumentCapture: FC<DocumentCaptureProps
|
|
6
|
+
export declare const DocumentCapture: FC<Omit<DocumentCaptureProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type DocumentCaptureProps = IncodeModuleProps<DocumentCaptureConfig, void, DocumentCaptureManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
package/dist/types/ekyb.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { EkybConfig } from '@incodetech/core/ekyb';
|
|
2
3
|
import { EkybManager } from '@incodetech/core/ekyb';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
export declare const EkybModule: FC<EkybModuleProps
|
|
6
|
+
export declare const EkybModule: FC<Omit<EkybModuleProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type EkybModuleProps = IncodeModuleProps<EkybConfig, void, EkybManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
package/dist/types/ekyc.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { EkycConfig } from '@incodetech/core/ekyc';
|
|
2
3
|
import { EkycManager } from '@incodetech/core/ekyc';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
export declare const EkycModule: FC<EkycModuleProps
|
|
6
|
+
export declare const EkycModule: FC<Omit<EkycModuleProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type EkycModuleProps = IncodeModuleProps<EkycConfig, void, EkycManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
|
@@ -28,12 +28,12 @@ declare type IncodeFinishMeta = {
|
|
|
28
28
|
sdkOwnsTerminalScreen?: boolean;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
31
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
32
32
|
/**
|
|
33
33
|
* Module configuration required to render the flow.
|
|
34
34
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
35
35
|
*/
|
|
36
|
-
config?:
|
|
36
|
+
config?: TConfigInput;
|
|
37
37
|
/**
|
|
38
38
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
39
39
|
*/
|
package/dist/types/email.d.ts
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { EmailConfig } from '@incodetech/core/email';
|
|
2
3
|
import { EmailManager } from '@incodetech/core/email';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* Provides a complete email verification experience including:
|
|
9
|
-
* - Email address input with validation
|
|
10
|
-
* - OTP code entry with resend functionality
|
|
11
|
-
* - Loading states and error handling
|
|
12
|
-
*
|
|
13
|
-
* @example Basic usage
|
|
14
|
-
* ```tsx
|
|
15
|
-
* <Email
|
|
16
|
-
* config={{
|
|
17
|
-
* otpVerification: true,
|
|
18
|
-
* otpExpirationInMinutes: 5,
|
|
19
|
-
* prefill: false,
|
|
20
|
-
* }}
|
|
21
|
-
* onFinish={() => router.push('/next-step')}
|
|
22
|
-
* onError={(err) => toast.error(err)}
|
|
23
|
-
* />
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link createEmailManager} for headless usage
|
|
27
|
-
*/
|
|
28
|
-
export declare const Email: FC<EmailProps>;
|
|
6
|
+
export declare const Email: FC<Omit<EmailProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
29
9
|
|
|
30
10
|
/**
|
|
31
11
|
* Props for the Email component
|
|
@@ -52,12 +32,12 @@ declare type IncodeFinishMeta = {
|
|
|
52
32
|
sdkOwnsTerminalScreen?: boolean;
|
|
53
33
|
};
|
|
54
34
|
|
|
55
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
35
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
56
36
|
/**
|
|
57
37
|
* Module configuration required to render the flow.
|
|
58
38
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
59
39
|
*/
|
|
60
|
-
config?:
|
|
40
|
+
config?: TConfigInput;
|
|
61
41
|
/**
|
|
62
42
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
63
43
|
*/
|
|
@@ -495,12 +495,12 @@ declare type IncodeFinishMeta = {
|
|
|
495
495
|
sdkOwnsTerminalScreen?: boolean;
|
|
496
496
|
};
|
|
497
497
|
|
|
498
|
-
export declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
498
|
+
export declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
499
499
|
/**
|
|
500
500
|
* Module configuration required to render the flow.
|
|
501
501
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
502
502
|
*/
|
|
503
|
-
config?:
|
|
503
|
+
config?: TConfigInput;
|
|
504
504
|
/**
|
|
505
505
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
506
506
|
*/
|
|
@@ -1,30 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { FaceMatchConfig } from '@incodetech/core/face-match';
|
|
2
3
|
import { FaceMatchManager } from '@incodetech/core/face-match';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* Provides a complete face comparison experience including:
|
|
9
|
-
* - Animated photo comparison sequence
|
|
10
|
-
* - Match/no-match result display
|
|
11
|
-
* - Continue button to proceed
|
|
12
|
-
*
|
|
13
|
-
* @example Basic usage
|
|
14
|
-
* ```tsx
|
|
15
|
-
* <FaceMatch
|
|
16
|
-
* config={{
|
|
17
|
-
* variant: 'selfieVsId',
|
|
18
|
-
* disableFaceMatchAnimation: false,
|
|
19
|
-
* }}
|
|
20
|
-
* onFinish={() => router.push('/next-step')}
|
|
21
|
-
* onError={(err) => toast.error(err)}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link createFaceMatchManager} for headless usage
|
|
26
|
-
*/
|
|
27
|
-
export declare const FaceMatch: FC<FaceMatchProps>;
|
|
6
|
+
export declare const FaceMatch: FC<Omit<FaceMatchProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
28
9
|
|
|
29
10
|
/**
|
|
30
11
|
* Props for the FaceMatch component
|
|
@@ -51,12 +32,12 @@ declare type IncodeFinishMeta = {
|
|
|
51
32
|
sdkOwnsTerminalScreen?: boolean;
|
|
52
33
|
};
|
|
53
34
|
|
|
54
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
35
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
55
36
|
/**
|
|
56
37
|
* Module configuration required to render the flow.
|
|
57
38
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
58
39
|
*/
|
|
59
|
-
config?:
|
|
40
|
+
config?: TConfigInput;
|
|
60
41
|
/**
|
|
61
42
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
62
43
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { FC } from 'preact/compat';
|
|
2
3
|
import { FieldComparisonConfig } from '@incodetech/core/field-comparison';
|
|
3
4
|
import { FieldComparisonManager } from '@incodetech/core/field-comparison';
|
|
4
5
|
|
|
5
|
-
export declare const FieldComparison: FC<FieldComparisonProps
|
|
6
|
+
export declare const FieldComparison: FC<Omit<FieldComparisonProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type FieldComparisonProps = IncodeModuleProps<FieldComparisonConfig, void, FieldComparisonManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { FC } from 'preact/compat';
|
|
2
3
|
import { FiscalQrConfig } from '@incodetech/core/fiscal-qr';
|
|
4
|
+
import { FiscalQrManager } from '@incodetech/core/fiscal-qr';
|
|
3
5
|
|
|
4
|
-
export declare const FiscalQr: FC<FiscalQrProps
|
|
6
|
+
export declare const FiscalQr: FC<Omit<FiscalQrProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
5
9
|
|
|
6
|
-
declare type FiscalQrProps = IncodeModuleProps<FiscalQrConfig>;
|
|
10
|
+
declare type FiscalQrProps = IncodeModuleProps<FiscalQrConfig, void, FiscalQrManager>;
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
@@ -25,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
25
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
29
33
|
/**
|
|
30
34
|
* Module configuration required to render the flow.
|
|
31
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
32
36
|
*/
|
|
33
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
34
38
|
/**
|
|
35
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
36
40
|
*/
|
|
@@ -60,6 +64,6 @@ export { }
|
|
|
60
64
|
|
|
61
65
|
declare global {
|
|
62
66
|
interface HTMLElementTagNameMap {
|
|
63
|
-
'incode-fiscal-qr': HTMLElement & IncodeModuleProps<FiscalQrConfig>;
|
|
67
|
+
'incode-fiscal-qr': HTMLElement & IncodeModuleProps<FiscalQrConfig, void, FiscalQrManager>;
|
|
64
68
|
}
|
|
65
69
|
}
|
package/dist/types/flow.d.ts
CHANGED
|
@@ -71,12 +71,12 @@ export declare const IncodeFlow: FC<IncodeFlowProps>;
|
|
|
71
71
|
|
|
72
72
|
declare type IncodeFlowProps = IncodeModuleProps<FlowConfig, FinishStatus>;
|
|
73
73
|
|
|
74
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
74
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
75
75
|
/**
|
|
76
76
|
* Module configuration required to render the flow.
|
|
77
77
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
78
78
|
*/
|
|
79
|
-
config?:
|
|
79
|
+
config?: TConfigInput;
|
|
80
80
|
/**
|
|
81
81
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
82
82
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { FC } from 'preact/compat';
|
|
2
3
|
import { GeolocationConfig } from '@incodetech/core/geolocation';
|
|
3
4
|
import { GeolocationManager } from '@incodetech/core/geolocation';
|
|
4
5
|
|
|
5
|
-
declare const Geolocation_2: FC<GeolocationProps
|
|
6
|
+
declare const Geolocation_2: FC<Omit<GeolocationProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
export { Geolocation_2 as Geolocation }
|
|
7
10
|
|
|
8
11
|
declare type GeolocationProps = IncodeModuleProps<GeolocationConfig> & {
|
|
@@ -29,12 +32,12 @@ declare type IncodeFinishMeta = {
|
|
|
29
32
|
sdkOwnsTerminalScreen?: boolean;
|
|
30
33
|
};
|
|
31
34
|
|
|
32
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
35
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
33
36
|
/**
|
|
34
37
|
* Module configuration required to render the flow.
|
|
35
38
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
36
39
|
*/
|
|
37
|
-
config?:
|
|
40
|
+
config?: TConfigInput;
|
|
38
41
|
/**
|
|
39
42
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
40
43
|
*/
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { FC } from 'preact/compat';
|
|
2
3
|
import { GovernmentValidationConfig } from '@incodetech/core/government-validation';
|
|
3
4
|
|
|
4
|
-
export declare const GovernmentValidation: FC<GovernmentValidationProps
|
|
5
|
+
export declare const GovernmentValidation: FC<Omit<GovernmentValidationProps, "config"> & {
|
|
6
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
7
|
+
}>;
|
|
5
8
|
|
|
6
9
|
declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig>;
|
|
7
10
|
|
|
@@ -25,12 +28,12 @@ declare type IncodeFinishMeta = {
|
|
|
25
28
|
sdkOwnsTerminalScreen?: boolean;
|
|
26
29
|
};
|
|
27
30
|
|
|
28
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
31
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
29
32
|
/**
|
|
30
33
|
* Module configuration required to render the flow.
|
|
31
34
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
32
35
|
*/
|
|
33
|
-
config?:
|
|
36
|
+
config?: TConfigInput;
|
|
34
37
|
/**
|
|
35
38
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
36
39
|
*/
|
|
@@ -26,12 +26,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
26
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
29
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
30
|
/**
|
|
31
31
|
* Module configuration required to render the flow.
|
|
32
32
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
33
|
*/
|
|
34
|
-
config?:
|
|
34
|
+
config?: TConfigInput;
|
|
35
35
|
/**
|
|
36
36
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
37
|
*/
|
package/dist/types/id.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DeepPartial } from '@incodetech/core/flow';
|
|
1
2
|
import { FC } from 'preact/compat';
|
|
2
3
|
import { IdCaptureConfig } from '@incodetech/core/id';
|
|
3
4
|
import { IdCaptureManager } from '@incodetech/core/id';
|
|
4
5
|
|
|
5
|
-
export declare const Id: FC<IdProps
|
|
6
|
+
export declare const Id: FC<Omit<IdProps, "config"> & {
|
|
7
|
+
config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
|
|
7
10
|
declare type IdProps = IncodeModuleProps<IdCaptureConfig, unknown, IdCaptureManager>;
|
|
8
11
|
|
|
@@ -26,12 +29,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
29
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
32
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
33
|
/**
|
|
31
34
|
* Module configuration required to render the flow.
|
|
32
35
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
36
|
*/
|
|
34
|
-
config?:
|
|
37
|
+
config?: TConfigInput;
|
|
35
38
|
/**
|
|
36
39
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
40
|
*/
|
|
@@ -26,12 +26,12 @@ declare type IncodeFinishMeta = {
|
|
|
26
26
|
sdkOwnsTerminalScreen?: boolean;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
29
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TConfigInput = TConfig> = {
|
|
30
30
|
/**
|
|
31
31
|
* Module configuration required to render the flow.
|
|
32
32
|
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
33
33
|
*/
|
|
34
|
-
config?:
|
|
34
|
+
config?: TConfigInput;
|
|
35
35
|
/**
|
|
36
36
|
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
37
37
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -19,6 +19,11 @@ declare type FeatureManagementSetupOptions = {
|
|
|
19
19
|
redactedUserInfo?: FeatureManagementRedactedUserInfo;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
declare type FlowSetup = false | {
|
|
23
|
+
preload?: boolean;
|
|
24
|
+
mergeConfig?: boolean;
|
|
25
|
+
};
|
|
26
|
+
|
|
22
27
|
export declare type I18nOptions = {
|
|
23
28
|
lang?: string;
|
|
24
29
|
loadPath?: string;
|
|
@@ -35,7 +40,7 @@ export declare function setI18nInstance(instance: i18n): void;
|
|
|
35
40
|
*/
|
|
36
41
|
export declare function setUiConfig(next: UiConfig): void;
|
|
37
42
|
|
|
38
|
-
export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, fingerprint, devMode, featureManagement, environment, i18n, uiConfig, }: SetupOptions): Promise<void>;
|
|
43
|
+
export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, fingerprint, devMode, featureManagement, environment, i18n, uiConfig, flow, theme, }: SetupOptions): Promise<void>;
|
|
39
44
|
|
|
40
45
|
declare type SetupOptions = {
|
|
41
46
|
apiURL: string;
|
|
@@ -70,6 +75,23 @@ declare type SetupOptions = {
|
|
|
70
75
|
environment?: 'development' | 'staging' | 'production';
|
|
71
76
|
i18n?: I18nOptions;
|
|
72
77
|
uiConfig?: UiConfig;
|
|
78
|
+
/**
|
|
79
|
+
* Controls Flow-backed standalone module configuration. Omit or pass `{}`
|
|
80
|
+
* for lazy resolution, use `preload` to fetch Flow during setup, use
|
|
81
|
+
* `mergeConfig` to merge supplied partial config over Flow config, or pass
|
|
82
|
+
* `false` to disable Flow-backed standalone configuration.
|
|
83
|
+
*/
|
|
84
|
+
flow?: FlowSetup;
|
|
85
|
+
/**
|
|
86
|
+
* Controls the session dashboard theme independently from Flow. Omit or
|
|
87
|
+
* pass `{}` for compatibility-safe lazy loading, use `preload` to fetch and
|
|
88
|
+
* apply it during setup, or pass `false` to disable it.
|
|
89
|
+
*/
|
|
90
|
+
theme?: ThemeSetup;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
declare type ThemeSetup = false | {
|
|
94
|
+
preload?: boolean;
|
|
73
95
|
};
|
|
74
96
|
|
|
75
97
|
declare type Translations = Partial<Record<string, LanguageTranslations>>;
|