@incodetech/web 2.1.0-rc.1 → 2.1.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/ae-signature/styles.css +59 -45
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/authentication/authentication.es.js +5 -4
- package/dist/{autoFocusTitle-BzkUiELM.js → autoFocusTitle-CuRu2lPg.js} +1 -1
- package/dist/base.css +100 -60
- package/dist/{bottomSheet-F1GJfQx_.js → bottomSheet-CnWbbUAM.js} +1 -1
- package/dist/{button-CM_hgyIP.js → button-Dz6AsbmF.js} +7 -2
- package/dist/cameraView-DIEzM5ru.js +47 -0
- package/dist/{tutorial-D1qaY2Tm.js → capture-CkGvdDNH.js} +23 -573
- package/dist/certificate-issuance/certificate-issuance.es.js +249 -0
- package/dist/certificate-issuance/styles.css +114 -0
- package/dist/{checkbox-BoeLHKgp.js → checkbox-1wUHSoaK.js} +2 -2
- package/dist/consent/consent.es.js +11 -11
- package/dist/{countrySelector-mSWyHSy4.js → countrySelector-SvUOyPo0.js} +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/cpfOcr-B79245-3.js +2 -0
- package/dist/{cpfOcr-MtpRztkG.js → cpfOcr-BhxT-lRN.js} +7 -7
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/curp-validation/curp-validation.es.js +17 -17
- package/dist/{customFields-DXXt9HGM.js → customFields-BDsXR7A-.js} +11 -11
- package/dist/{customWatchlist-DsW04UF6.js → customWatchlist-CYoRNCim.js} +6 -6
- package/dist/dateInputComposed-DRzZi6uy.js +1 -0
- package/dist/{dateInputComposed-C_mh4XBg.js → dateInputComposed-DuaofcBl.js} +3 -3
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-DXYYyxZl.js +2 -0
- package/dist/{documentCapture-BDV_921m.js → documentCapture-DhbO-A-V.js} +15 -13
- package/dist/dropdownComposed-BAoxIIsE.js +1 -0
- package/dist/{dropdownComposed-_fgAlo_C.js → dropdownComposed-CoU0enG6.js} +9 -10
- package/dist/{dynamicForms-DyfnsS7E.js → dynamicForms-BifGbC9F.js} +24 -13
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-C6Nttked.js +2 -0
- package/dist/{ekybModule-CIPGmCvD.js → ekybModule-DGnTw5UV.js} +15 -15
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-CDIEjI6V.js +2 -0
- package/dist/{ekycModule-BuTaC5ct.js → ekycModule-Dxpdd0ns.js} +14 -14
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-B-Q7M0wK.js → electronic-signature-Ueoffasr.js} +42 -31
- package/dist/email/email.es.js +8 -8
- package/dist/{emailInput-KZmhjOdZ.js → emailInput-DsLkDtER.js} +6 -6
- package/dist/{expiredId-Q1t6aVpk.js → expiredId-BZXLrLk-.js} +6 -6
- package/dist/{extensibility-Cs3KQQdC.js → extensibility-7sRIN0JC.js} +54 -89
- package/dist/extensibility.es.js +25 -23
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +4 -0
- package/dist/faceMatch-B_HvxLm_.js +2 -0
- package/dist/{faceMatch--RDHJe4t.js → faceMatch-DyTBoMDm.js} +10 -10
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-DfNEuEE5.js +2 -0
- package/dist/{fieldComparison-CAF86bTC.js → fieldComparison-L_knHqgw.js} +9 -9
- package/dist/fiscal-qr/fiscal-qr.es.js +9 -8
- package/dist/flow/flow.es.js +35 -12
- package/dist/flow/styles.css +4242 -2972
- package/dist/geolocation/geolocation.es.js +190 -326
- package/dist/geolocation/styles.css +8 -0
- package/dist/{governmentValidation/governmentValidation.es.js → government-validation/government-validation.es.js} +12 -16
- package/dist/{homeScreen-BZnIEDrV.js → homeScreen-B6T0JVh8.js} +5 -5
- package/dist/{hooks-Da_yP_Dr.js → hooks-CNu7o-v8.js} +39 -2
- package/dist/{i18n-CoCO2ZuN.js → i18n-CU4xq8qC.js} +1 -1
- package/dist/{icons-Dbs9ZfYM.js → icons-CJJbIpBq.js} +2 -2
- package/dist/id/id.es.js +80 -50
- package/dist/id/styles.css +1 -9
- package/dist/id-ocr/styles.css +12 -2
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-CjGbb4dB.js → idOcr-WFBvqy3b.js} +34 -16
- package/dist/identity-reuse/identity-reuse.es.js +7 -7
- package/dist/{incodeComponent-wfnHlnXx.js → incodeComponent-CfzJGETt.js} +3 -2
- package/dist/{incodeModule-BUDoTwT9.js → incodeModule-B-4_3JrK.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/inputComposed-BaY5q9WM.js +1 -0
- package/dist/{inputComposed-CQ4AsvZg.js → inputComposed-C1R2LAa3.js} +3 -3
- package/dist/{mandatoryConsent-r0PQHmv-.js → mandatoryConsent-D0GTKu-H.js} +10 -10
- package/dist/{modal-nTSaG7nB.js → modal-OxkFuuiR.js} +2 -2
- package/dist/{optionAccessibleLabel-CnA-mNAU.js → optionAccessibleLabel-gfF-58Mv.js} +5 -5
- package/dist/{otpInput-_JmtVwa0.js → otpInput-CnDc6pQm.js} +14 -13
- package/dist/{verifiedByIncode-DjXOdCml.js → page-DidH_RkX.js} +70 -2
- package/dist/{pdf-BZA70WbM.js → pdf-BqtJTlor.js} +1 -1
- package/dist/{pdfViewer-BK-yVIve.js → pdfViewer-B97DmT9m.js} +57 -20
- package/dist/phone/phone.es.js +9 -9
- package/dist/{phoneInputComposed-DjNdsmPE.js → phoneInputComposed-DMiXfF-1.js} +5 -5
- package/dist/{processing-BM-wT-1W.js → processing-BeUMfdJJ.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{radioGroupComposed-BNuaopVr.js → radioGroupComposed-DuQxslB2.js} +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +36 -32
- package/dist/redirect-to-mobile/styles.css +3 -2
- package/dist/{richText-Cf9aMOCk.js → richText-CB1fmegc.js} +1 -1
- package/dist/selfie/selfie.es.js +8 -7
- package/dist/selfie/styles.css +133 -63
- package/dist/signature/signature.es.js +9 -9
- package/dist/spinner-BCDCoi9C.js +1 -0
- package/dist/{spinner-D8a_2LvW.js → spinner-BMeIEK1d.js} +18 -6
- package/dist/{statusPage-DMYPUwRZ.js → statusPage-Bk8nJwXV.js} +2 -2
- package/dist/themes/dark.css +24 -2
- package/dist/themes/light.css +24 -2
- package/dist/{transitionSpinner-DRRz-NV8.js → transitionSpinner-CuNCqHNi.js} +12 -8
- package/dist/tutorial-CCfPuVKX.js +706 -0
- package/dist/types/ae-signature.d.ts +23 -1
- package/dist/types/antifraud.d.ts +23 -1
- package/dist/types/authentication.d.ts +23 -1
- package/dist/types/certificate-issuance.d.ts +68 -0
- package/dist/types/consent.d.ts +23 -1
- package/dist/types/cross-document-data-match.d.ts +23 -1
- package/dist/types/curp-validation.d.ts +23 -1
- package/dist/types/document-capture.d.ts +23 -1
- package/dist/types/ekyb.d.ts +23 -1
- package/dist/types/ekyc.d.ts +23 -1
- package/dist/types/electronic-signature.d.ts +23 -1
- package/dist/types/email.d.ts +23 -1
- package/dist/types/extensibility.d.ts +40 -3
- package/dist/types/face-match.d.ts +23 -1
- package/dist/types/field-comparison.d.ts +23 -1
- package/dist/types/fiscal-qr.d.ts +23 -1
- package/dist/types/flow.d.ts +23 -1
- package/dist/types/geolocation.d.ts +27 -2
- package/dist/types/{governmentValidation.d.ts → government-validation.d.ts} +23 -1
- package/dist/types/id-verification.d.ts +23 -1
- package/dist/types/id.d.ts +23 -1
- package/dist/types/identity-reuse.d.ts +23 -1
- package/dist/types/phone.d.ts +23 -1
- package/dist/types/qe-signature.d.ts +23 -1
- package/dist/types/selfie.d.ts +23 -1
- package/dist/types/signature.d.ts +23 -1
- package/dist/types/video-selfie.d.ts +72 -0
- package/dist/types/watchlist.d.ts +23 -1
- package/dist/types/workflow.d.ts +23 -1
- package/dist/{useModuleLoader-CeJ2jL25.js → useModuleLoader-Gvo9qscB.js} +42 -25
- package/dist/{verificationResult-Do5SpZ6X.js → verificationResult-BWWkmeiA.js} +8 -8
- package/dist/video-selfie/styles.css +1644 -0
- package/dist/video-selfie/video-selfie.es.js +854 -0
- package/dist/watchlist/watchlist.es.js +6 -6
- package/dist/{watchlistForBusiness-BFFXC9d-.js → watchlistForBusiness-D2Uo_TwF.js} +10 -10
- package/dist/workflow/styles.css +254 -76
- package/dist/workflow/workflow.es.js +146 -17
- package/package.json +42 -5
- package/dist/cpfOcr-jJkYCfsX.js +0 -2
- package/dist/dateInputComposed-Cy6a7ymh.js +0 -1
- package/dist/documentCapture-8ypBJehw.js +0 -2
- package/dist/dropdownComposed-CEWBSdGl.js +0 -1
- package/dist/ekybModule-DFoYpheB.js +0 -2
- package/dist/ekycModule-BGzwgjl1.js +0 -2
- package/dist/faceMatch-yEKPYaym.js +0 -2
- package/dist/fieldComparison-D0an7T_g.js +0 -2
- package/dist/inputComposed-BEn7_nZd.js +0 -1
- package/dist/page-DxGQj7Gk.js +0 -71
- package/dist/spinner-B6RxGFrI.js +0 -1
- /package/dist/{aligndevicelottie-DY_bX_p8.js → aligndevicelottie-DFscByAI.js} +0 -0
- /package/dist/{back-horizontal-hint-D_8LptLm.js → back-horizontal-hint-xTnSQbzn.js} +0 -0
- /package/dist/{back-tutorial-vb1MxlrT.js → back-tutorial-cI_4VHmE.js} +0 -0
- /package/dist/{back-vertical-hint-C1evxxq2.js → back-vertical-hint-BWWlHfX2.js} +0 -0
- /package/dist/{backdevicelottie-HypPqBz7.js → backdevicelottie-COyhTrxM.js} +0 -0
- /package/dist/{blurdevicelottie-CBXtBFiJ.js → blurdevicelottie-BLVeJHEG.js} +0 -0
- /package/dist/{browser-ponyfill-CLLvZCVg.js → browser-ponyfill-Df13Th-G.js} +0 -0
- /package/dist/{defineProperty-mefzVtTv.js → defineProperty-Qjefk7Uf.js} +0 -0
- /package/dist/{errorIcon-DJRZpd8j.js → errorIcon-BA4T6iy-.js} +0 -0
- /package/dist/{flip-animation-BGRvygw9.js → flip-animation-CZYSUtMm.js} +0 -0
- /package/dist/{front-horizontal-hint-Uf5bHCsd.js → front-horizontal-hint-B84GgTO1.js} +0 -0
- /package/dist/{front-vertical-hint-DdWNA45v.js → front-vertical-hint-Bs_avngq.js} +0 -0
- /package/dist/{frontdevicelottie-CLqitJhG.js → frontdevicelottie-B4tE2PYQ.js} +0 -0
- /package/dist/{glaredevicelottie-BS04U6Fc.js → glaredevicelottie-D1pR73sx.js} +0 -0
- /package/dist/{governmentValidation → government-validation}/styles.css +0 -0
- /package/dist/{id-laser-h-DX8UbVNH.js → id-laser-h-CzPegPMn.js} +0 -0
- /package/dist/{id-laser-v-DhnHdjlB.js → id-laser-v-BiUXkM4x.js} +0 -0
- /package/dist/{id-tutorial-lj4iKtYT.js → id-tutorial-DwO90SAm.js} +0 -0
- /package/dist/{lottie_light-Dp9Bz3mf.js → lottie_light-C6B2ec41.js} +0 -0
- /package/dist/{modal.hooks-D2xhIuHA.js → modal.hooks-ZrzmHAUa.js} +0 -0
- /package/dist/{numberedStep-CEtwZqLp.js → numberedStep-CEb-lFJm.js} +0 -0
- /package/dist/{passport-horizontal-hint-Bbm2mvSn.js → passport-horizontal-hint-Bj0ZJY0g.js} +0 -0
- /package/dist/{passport-tutorial-zT1ZoA-D.js → passport-tutorial-D9JNsMsM.js} +0 -0
- /package/dist/{passport-vertical-hint-DJbCtBiM.js → passport-vertical-hint-Dfk77xUJ.js} +0 -0
- /package/dist/{registerIncodeElement-77NGCDsy.js → registerIncodeElement-DaNjbAwZ.js} +0 -0
- /package/dist/{requiredLabelHint-DEadtiwx.js → requiredLabelHint-D0RhuMed.js} +0 -0
- /package/dist/{selfieTutorial-CtruLyO2.js → selfieTutorial-pB-N-fj5.js} +0 -0
- /package/dist/{snackbar-CxepGC3e.js → snackbar-DS7Mv62v.js} +0 -0
- /package/dist/{successIcon-BAyDPT7I.js → successIcon-B5mGvdx1.js} +0 -0
- /package/dist/{tabs-C8npVBbk.js → tabs-C__chW-u.js} +0 -0
- /package/dist/{typography-YLgHHuao.js → typography-BZIpjo97.js} +0 -0
|
@@ -6,6 +6,26 @@ export declare const FieldComparison: FC<FieldComparisonProps>;
|
|
|
6
6
|
|
|
7
7
|
declare type FieldComparisonProps = IncodeModuleProps<FieldComparisonConfig, void, FieldComparisonManager>;
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
11
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
12
|
+
* workflow module sets these fields today.
|
|
13
|
+
*/
|
|
14
|
+
declare type IncodeFinishMeta = {
|
|
15
|
+
/**
|
|
16
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
17
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
18
|
+
* screen), so the host should not render its own completion screen on top.
|
|
19
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
20
|
+
* OAuth parent).
|
|
21
|
+
*
|
|
22
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
23
|
+
* because the host reads this flag — a host that ignores it will still
|
|
24
|
+
* replace the SDK screen. Not a guarantee.
|
|
25
|
+
*/
|
|
26
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
27
|
+
};
|
|
28
|
+
|
|
9
29
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
10
30
|
/**
|
|
11
31
|
* Module configuration required to render the flow.
|
|
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
19
39
|
/**
|
|
20
40
|
* Callback invoked when the module completes successfully.
|
|
21
41
|
* @param result - Optional result data from the module completion
|
|
42
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
43
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
22
44
|
*/
|
|
23
|
-
onFinish?: (result?: TResult) => void;
|
|
45
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
24
46
|
/**
|
|
25
47
|
* Callback invoked when a fatal module error occurs.
|
|
26
48
|
*
|
|
@@ -5,6 +5,26 @@ export declare const FiscalQr: FC<FiscalQrProps>;
|
|
|
5
5
|
|
|
6
6
|
declare type FiscalQrProps = IncodeModuleProps<FiscalQrConfig>;
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
10
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
11
|
+
* workflow module sets these fields today.
|
|
12
|
+
*/
|
|
13
|
+
declare type IncodeFinishMeta = {
|
|
14
|
+
/**
|
|
15
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
16
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
17
|
+
* screen), so the host should not render its own completion screen on top.
|
|
18
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
19
|
+
* OAuth parent).
|
|
20
|
+
*
|
|
21
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
22
|
+
* because the host reads this flag — a host that ignores it will still
|
|
23
|
+
* replace the SDK screen. Not a guarantee.
|
|
24
|
+
*/
|
|
25
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
8
28
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
9
29
|
/**
|
|
10
30
|
* Module configuration required to render the flow.
|
|
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
18
38
|
/**
|
|
19
39
|
* Callback invoked when the module completes successfully.
|
|
20
40
|
* @param result - Optional result data from the module completion
|
|
41
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
42
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
21
43
|
*/
|
|
22
|
-
onFinish?: (result?: TResult) => void;
|
|
44
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
23
45
|
/**
|
|
24
46
|
* Callback invoked when a fatal module error occurs.
|
|
25
47
|
*
|
package/dist/types/flow.d.ts
CHANGED
|
@@ -45,6 +45,26 @@ declare type FlowUiConfig = {
|
|
|
45
45
|
spinnerConfig?: SpinnerConfig;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
50
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
51
|
+
* workflow module sets these fields today.
|
|
52
|
+
*/
|
|
53
|
+
declare type IncodeFinishMeta = {
|
|
54
|
+
/**
|
|
55
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
56
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
57
|
+
* screen), so the host should not render its own completion screen on top.
|
|
58
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
59
|
+
* OAuth parent).
|
|
60
|
+
*
|
|
61
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
62
|
+
* because the host reads this flag — a host that ignores it will still
|
|
63
|
+
* replace the SDK screen. Not a guarantee.
|
|
64
|
+
*/
|
|
65
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
66
|
+
};
|
|
67
|
+
|
|
48
68
|
export declare const IncodeFlow: FC<IncodeFlowProps>;
|
|
49
69
|
|
|
50
70
|
declare type IncodeFlowProps = IncodeModuleProps<FlowConfig, FinishStatus>;
|
|
@@ -62,8 +82,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
62
82
|
/**
|
|
63
83
|
* Callback invoked when the module completes successfully.
|
|
64
84
|
* @param result - Optional result data from the module completion
|
|
85
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
86
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
65
87
|
*/
|
|
66
|
-
onFinish?: (result?: TResult) => void;
|
|
88
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
67
89
|
/**
|
|
68
90
|
* Callback invoked when a fatal module error occurs.
|
|
69
91
|
*
|
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
import { FC } from 'preact/compat';
|
|
2
2
|
import { GeolocationConfig } from '@incodetech/core/geolocation';
|
|
3
|
+
import { GeolocationManager } from '@incodetech/core/geolocation';
|
|
3
4
|
|
|
4
5
|
declare const Geolocation_2: FC<GeolocationProps>;
|
|
5
6
|
export { Geolocation_2 as Geolocation }
|
|
6
7
|
|
|
7
|
-
declare type GeolocationProps = IncodeModuleProps<GeolocationConfig
|
|
8
|
+
declare type GeolocationProps = IncodeModuleProps<GeolocationConfig> & {
|
|
9
|
+
manager?: GeolocationManager;
|
|
10
|
+
};
|
|
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
|
+
};
|
|
8
31
|
|
|
9
32
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
10
33
|
/**
|
|
@@ -19,8 +42,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
19
42
|
/**
|
|
20
43
|
* Callback invoked when the module completes successfully.
|
|
21
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}.
|
|
22
47
|
*/
|
|
23
|
-
onFinish?: (result?: TResult) => void;
|
|
48
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
24
49
|
/**
|
|
25
50
|
* Callback invoked when a fatal module error occurs.
|
|
26
51
|
*
|
|
@@ -5,6 +5,26 @@ export declare const GovernmentValidation: FC<GovernmentValidationProps>;
|
|
|
5
5
|
|
|
6
6
|
declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig>;
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
10
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
11
|
+
* workflow module sets these fields today.
|
|
12
|
+
*/
|
|
13
|
+
declare type IncodeFinishMeta = {
|
|
14
|
+
/**
|
|
15
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
16
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
17
|
+
* screen), so the host should not render its own completion screen on top.
|
|
18
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
19
|
+
* OAuth parent).
|
|
20
|
+
*
|
|
21
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
22
|
+
* because the host reads this flag — a host that ignores it will still
|
|
23
|
+
* replace the SDK screen. Not a guarantee.
|
|
24
|
+
*/
|
|
25
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
8
28
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
9
29
|
/**
|
|
10
30
|
* Module configuration required to render the flow.
|
|
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
18
38
|
/**
|
|
19
39
|
* Callback invoked when the module completes successfully.
|
|
20
40
|
* @param result - Optional result data from the module completion
|
|
41
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
42
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
21
43
|
*/
|
|
22
|
-
onFinish?: (result?: TResult) => void;
|
|
44
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
23
45
|
/**
|
|
24
46
|
* Callback invoked when a fatal module error occurs.
|
|
25
47
|
*
|
|
@@ -5,6 +5,26 @@ export declare const IdVerification: FC<IdVerificationProps>;
|
|
|
5
5
|
|
|
6
6
|
declare type IdVerificationProps = IncodeModuleProps<IdVerificationConfig>;
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
10
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
11
|
+
* workflow module sets these fields today.
|
|
12
|
+
*/
|
|
13
|
+
declare type IncodeFinishMeta = {
|
|
14
|
+
/**
|
|
15
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
16
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
17
|
+
* screen), so the host should not render its own completion screen on top.
|
|
18
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
19
|
+
* OAuth parent).
|
|
20
|
+
*
|
|
21
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
22
|
+
* because the host reads this flag — a host that ignores it will still
|
|
23
|
+
* replace the SDK screen. Not a guarantee.
|
|
24
|
+
*/
|
|
25
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
8
28
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
9
29
|
/**
|
|
10
30
|
* Module configuration required to render the flow.
|
|
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
18
38
|
/**
|
|
19
39
|
* Callback invoked when the module completes successfully.
|
|
20
40
|
* @param result - Optional result data from the module completion
|
|
41
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
42
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
21
43
|
*/
|
|
22
|
-
onFinish?: (result?: TResult) => void;
|
|
44
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
23
45
|
/**
|
|
24
46
|
* Callback invoked when a fatal module error occurs.
|
|
25
47
|
*
|
package/dist/types/id.d.ts
CHANGED
|
@@ -6,6 +6,26 @@ export declare const Id: FC<IdProps>;
|
|
|
6
6
|
|
|
7
7
|
declare type IdProps = IncodeModuleProps<IdCaptureConfig, void, IdCaptureManager>;
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
11
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
12
|
+
* workflow module sets these fields today.
|
|
13
|
+
*/
|
|
14
|
+
declare type IncodeFinishMeta = {
|
|
15
|
+
/**
|
|
16
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
17
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
18
|
+
* screen), so the host should not render its own completion screen on top.
|
|
19
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
20
|
+
* OAuth parent).
|
|
21
|
+
*
|
|
22
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
23
|
+
* because the host reads this flag — a host that ignores it will still
|
|
24
|
+
* replace the SDK screen. Not a guarantee.
|
|
25
|
+
*/
|
|
26
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
27
|
+
};
|
|
28
|
+
|
|
9
29
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
10
30
|
/**
|
|
11
31
|
* Module configuration required to render the flow.
|
|
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
19
39
|
/**
|
|
20
40
|
* Callback invoked when the module completes successfully.
|
|
21
41
|
* @param result - Optional result data from the module completion
|
|
42
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
43
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
22
44
|
*/
|
|
23
|
-
onFinish?: (result?: TResult) => void;
|
|
45
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
24
46
|
/**
|
|
25
47
|
* Callback invoked when a fatal module error occurs.
|
|
26
48
|
*
|
|
@@ -6,6 +6,26 @@ export declare const IdentityReuse: FC<IdentityReuseProps>;
|
|
|
6
6
|
|
|
7
7
|
declare type IdentityReuseProps = IncodeModuleProps<IdentityReuseConfig, void, IdentityReuseManager>;
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
11
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
12
|
+
* workflow module sets these fields today.
|
|
13
|
+
*/
|
|
14
|
+
declare type IncodeFinishMeta = {
|
|
15
|
+
/**
|
|
16
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
17
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
18
|
+
* screen), so the host should not render its own completion screen on top.
|
|
19
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
20
|
+
* OAuth parent).
|
|
21
|
+
*
|
|
22
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
23
|
+
* because the host reads this flag — a host that ignores it will still
|
|
24
|
+
* replace the SDK screen. Not a guarantee.
|
|
25
|
+
*/
|
|
26
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
27
|
+
};
|
|
28
|
+
|
|
9
29
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
10
30
|
/**
|
|
11
31
|
* Module configuration required to render the flow.
|
|
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
19
39
|
/**
|
|
20
40
|
* Callback invoked when the module completes successfully.
|
|
21
41
|
* @param result - Optional result data from the module completion
|
|
42
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
43
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
22
44
|
*/
|
|
23
|
-
onFinish?: (result?: TResult) => void;
|
|
45
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
24
46
|
/**
|
|
25
47
|
* Callback invoked when a fatal module error occurs.
|
|
26
48
|
*
|
package/dist/types/phone.d.ts
CHANGED
|
@@ -2,6 +2,26 @@ import { FC } from 'preact/compat';
|
|
|
2
2
|
import { PhoneConfig } from '@incodetech/core/phone';
|
|
3
3
|
import { PhoneManager } from '@incodetech/core/phone';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
7
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
8
|
+
* workflow module sets these fields today.
|
|
9
|
+
*/
|
|
10
|
+
declare type IncodeFinishMeta = {
|
|
11
|
+
/**
|
|
12
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
13
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
14
|
+
* screen), so the host should not render its own completion screen on top.
|
|
15
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
16
|
+
* OAuth parent).
|
|
17
|
+
*
|
|
18
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
19
|
+
* because the host reads this flag — a host that ignores it will still
|
|
20
|
+
* replace the SDK screen. Not a guarantee.
|
|
21
|
+
*/
|
|
22
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
5
25
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
6
26
|
/**
|
|
7
27
|
* Module configuration required to render the flow.
|
|
@@ -15,8 +35,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
15
35
|
/**
|
|
16
36
|
* Callback invoked when the module completes successfully.
|
|
17
37
|
* @param result - Optional result data from the module completion
|
|
38
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
39
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
18
40
|
*/
|
|
19
|
-
onFinish?: (result?: TResult) => void;
|
|
41
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
20
42
|
/**
|
|
21
43
|
* Callback invoked when a fatal module error occurs.
|
|
22
44
|
*
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { FC } from 'preact/compat';
|
|
2
2
|
import { QeSignatureConfig } from '@incodetech/core/qe-signature';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
6
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
7
|
+
* workflow module sets these fields today.
|
|
8
|
+
*/
|
|
9
|
+
declare type IncodeFinishMeta = {
|
|
10
|
+
/**
|
|
11
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
12
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
13
|
+
* screen), so the host should not render its own completion screen on top.
|
|
14
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
15
|
+
* OAuth parent).
|
|
16
|
+
*
|
|
17
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
18
|
+
* because the host reads this flag — a host that ignores it will still
|
|
19
|
+
* replace the SDK screen. Not a guarantee.
|
|
20
|
+
*/
|
|
21
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
4
24
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
5
25
|
/**
|
|
6
26
|
* Module configuration required to render the flow.
|
|
@@ -14,8 +34,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
14
34
|
/**
|
|
15
35
|
* Callback invoked when the module completes successfully.
|
|
16
36
|
* @param result - Optional result data from the module completion
|
|
37
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
38
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
17
39
|
*/
|
|
18
|
-
onFinish?: (result?: TResult) => void;
|
|
40
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
19
41
|
/**
|
|
20
42
|
* Callback invoked when a fatal module error occurs.
|
|
21
43
|
*
|
package/dist/types/selfie.d.ts
CHANGED
|
@@ -2,6 +2,26 @@ import { FC } from 'preact/compat';
|
|
|
2
2
|
import { SelfieConfig } from '@incodetech/core/selfie';
|
|
3
3
|
import { SelfieManager } from '@incodetech/core/selfie';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
7
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
8
|
+
* workflow module sets these fields today.
|
|
9
|
+
*/
|
|
10
|
+
declare type IncodeFinishMeta = {
|
|
11
|
+
/**
|
|
12
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
13
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
14
|
+
* screen), so the host should not render its own completion screen on top.
|
|
15
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
16
|
+
* OAuth parent).
|
|
17
|
+
*
|
|
18
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
19
|
+
* because the host reads this flag — a host that ignores it will still
|
|
20
|
+
* replace the SDK screen. Not a guarantee.
|
|
21
|
+
*/
|
|
22
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
5
25
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
6
26
|
/**
|
|
7
27
|
* Module configuration required to render the flow.
|
|
@@ -15,8 +35,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
15
35
|
/**
|
|
16
36
|
* Callback invoked when the module completes successfully.
|
|
17
37
|
* @param result - Optional result data from the module completion
|
|
38
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
39
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
18
40
|
*/
|
|
19
|
-
onFinish?: (result?: TResult) => void;
|
|
41
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
20
42
|
/**
|
|
21
43
|
* Callback invoked when a fatal module error occurs.
|
|
22
44
|
*
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { FC } from 'preact/compat';
|
|
2
2
|
import { SignatureConfig } from '@incodetech/core/signature';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
6
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
7
|
+
* workflow module sets these fields today.
|
|
8
|
+
*/
|
|
9
|
+
declare type IncodeFinishMeta = {
|
|
10
|
+
/**
|
|
11
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
12
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
13
|
+
* screen), so the host should not render its own completion screen on top.
|
|
14
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
15
|
+
* OAuth parent).
|
|
16
|
+
*
|
|
17
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
18
|
+
* because the host reads this flag — a host that ignores it will still
|
|
19
|
+
* replace the SDK screen. Not a guarantee.
|
|
20
|
+
*/
|
|
21
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
4
24
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
5
25
|
/**
|
|
6
26
|
* Module configuration required to render the flow.
|
|
@@ -14,8 +34,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
14
34
|
/**
|
|
15
35
|
* Callback invoked when the module completes successfully.
|
|
16
36
|
* @param result - Optional result data from the module completion
|
|
37
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
38
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
17
39
|
*/
|
|
18
|
-
onFinish?: (result?: TResult) => void;
|
|
40
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
19
41
|
/**
|
|
20
42
|
* Callback invoked when a fatal module error occurs.
|
|
21
43
|
*
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FC } from 'preact/compat';
|
|
2
|
+
import { VideoSelfieConfig } from '@incodetech/core/video-selfie';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
6
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
7
|
+
* workflow module sets these fields today.
|
|
8
|
+
*/
|
|
9
|
+
declare type IncodeFinishMeta = {
|
|
10
|
+
/**
|
|
11
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
12
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
13
|
+
* screen), so the host should not render its own completion screen on top.
|
|
14
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
15
|
+
* OAuth parent).
|
|
16
|
+
*
|
|
17
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
18
|
+
* because the host reads this flag — a host that ignores it will still
|
|
19
|
+
* replace the SDK screen. Not a guarantee.
|
|
20
|
+
*/
|
|
21
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
25
|
+
/**
|
|
26
|
+
* Module configuration required to render the flow.
|
|
27
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
28
|
+
*/
|
|
29
|
+
config?: TConfig;
|
|
30
|
+
/**
|
|
31
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
32
|
+
*/
|
|
33
|
+
manager?: TManager;
|
|
34
|
+
/**
|
|
35
|
+
* Callback invoked when the module completes successfully.
|
|
36
|
+
* @param result - Optional result data from the module completion
|
|
37
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
38
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
39
|
+
*/
|
|
40
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Callback invoked when a fatal module error occurs.
|
|
43
|
+
*
|
|
44
|
+
* @param error - Human-readable error message.
|
|
45
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
46
|
+
* the workflow and flow modules on QR validation failures —
|
|
47
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
48
|
+
* @param moduleErrorCode - Optional machine-readable error code (e.g. a
|
|
49
|
+
* `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
|
|
50
|
+
* branch on the specific terminal error without parsing the message string.
|
|
51
|
+
*/
|
|
52
|
+
onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Video Selfie UI component. Records + streams a multi-step, camera-switching
|
|
57
|
+
* session and renders a live preview with per-step auto-capture guidance.
|
|
58
|
+
*
|
|
59
|
+
* @see {@link createVideoSelfieRecordingManager} for headless usage.
|
|
60
|
+
*/
|
|
61
|
+
export declare const VideoSelfie: FC<VideoSelfieProps>;
|
|
62
|
+
|
|
63
|
+
/** Props for the {@link VideoSelfie} component. */
|
|
64
|
+
declare type VideoSelfieProps = IncodeModuleProps<VideoSelfieConfig>;
|
|
65
|
+
|
|
66
|
+
export { }
|
|
67
|
+
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'incode-video-selfie': HTMLElement & IncodeModuleProps<VideoSelfieConfig>;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { FC } from 'preact/compat';
|
|
2
2
|
import { WatchlistConfig } from '@incodetech/core/watchlist';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
6
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
7
|
+
* workflow module sets these fields today.
|
|
8
|
+
*/
|
|
9
|
+
declare type IncodeFinishMeta = {
|
|
10
|
+
/**
|
|
11
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
12
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
13
|
+
* screen), so the host should not render its own completion screen on top.
|
|
14
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
15
|
+
* OAuth parent).
|
|
16
|
+
*
|
|
17
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
18
|
+
* because the host reads this flag — a host that ignores it will still
|
|
19
|
+
* replace the SDK screen. Not a guarantee.
|
|
20
|
+
*/
|
|
21
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
4
24
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
5
25
|
/**
|
|
6
26
|
* Module configuration required to render the flow.
|
|
@@ -14,8 +34,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
14
34
|
/**
|
|
15
35
|
* Callback invoked when the module completes successfully.
|
|
16
36
|
* @param result - Optional result data from the module completion
|
|
37
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
38
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
17
39
|
*/
|
|
18
|
-
onFinish?: (result?: TResult) => void;
|
|
40
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
19
41
|
/**
|
|
20
42
|
* Callback invoked when a fatal module error occurs.
|
|
21
43
|
*
|
package/dist/types/workflow.d.ts
CHANGED
|
@@ -14,6 +14,26 @@ declare type ClientIdSessionBootstrap = {
|
|
|
14
14
|
clientId: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Extra context passed to `onFinish` alongside the result. Lets a host decide
|
|
19
|
+
* how to react to the terminal state without inspecting the DOM. Only the
|
|
20
|
+
* workflow module sets these fields today.
|
|
21
|
+
*/
|
|
22
|
+
export declare type IncodeFinishMeta = {
|
|
23
|
+
/**
|
|
24
|
+
* True when the SDK owns the terminal screen — it has already rendered its
|
|
25
|
+
* own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
|
|
26
|
+
* screen), so the host should not render its own completion screen on top.
|
|
27
|
+
* `onFinish` still fires so the host can run side effects (e.g. notify an
|
|
28
|
+
* OAuth parent).
|
|
29
|
+
*
|
|
30
|
+
* Advisory only: the SDK cannot stop a host from rendering. This works solely
|
|
31
|
+
* because the host reads this flag — a host that ignores it will still
|
|
32
|
+
* replace the SDK screen. Not a guarantee.
|
|
33
|
+
*/
|
|
34
|
+
sdkOwnsTerminalScreen?: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
17
37
|
declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
18
38
|
/**
|
|
19
39
|
* Module configuration required to render the flow.
|
|
@@ -27,8 +47,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
|
27
47
|
/**
|
|
28
48
|
* Callback invoked when the module completes successfully.
|
|
29
49
|
* @param result - Optional result data from the module completion
|
|
50
|
+
* @param meta - Optional context about how the module resolved (e.g. whether
|
|
51
|
+
* the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
|
|
30
52
|
*/
|
|
31
|
-
onFinish?: (result?: TResult) => void;
|
|
53
|
+
onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
|
|
32
54
|
/**
|
|
33
55
|
* Callback invoked when a fatal module error occurs.
|
|
34
56
|
*
|