@velion-la/onboarding-sdk-react-native 1.0.0-beta.5 → 1.0.0-beta.7
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/README.md +85 -0
- package/lib/commonjs/core/VelionOnboarding.js +296 -15
- package/lib/commonjs/core/VelionOnboarding.js.map +1 -1
- package/lib/commonjs/core/retryStepCopy.js +43 -0
- package/lib/commonjs/core/retryStepCopy.js.map +1 -0
- package/lib/commonjs/core/routingCommands.js +62 -0
- package/lib/commonjs/core/routingCommands.js.map +1 -0
- package/lib/commonjs/core/sessionStateMapper.js +63 -0
- package/lib/commonjs/core/sessionStateMapper.js.map +1 -1
- package/lib/commonjs/i18n/strings/en.js +28 -0
- package/lib/commonjs/i18n/strings/en.js.map +1 -1
- package/lib/commonjs/i18n/strings/es.js +28 -0
- package/lib/commonjs/i18n/strings/es.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/steps/AddressInfoStep.js +30 -18
- package/lib/commonjs/steps/AddressInfoStep.js.map +1 -1
- package/lib/commonjs/steps/DocumentsOcrStep.js +4 -0
- package/lib/commonjs/steps/DocumentsOcrStep.js.map +1 -1
- package/lib/commonjs/steps/EmailContactStep.js +5 -0
- package/lib/commonjs/steps/EmailContactStep.js.map +1 -1
- package/lib/commonjs/steps/EmailOtpStep.js +5 -0
- package/lib/commonjs/steps/EmailOtpStep.js.map +1 -1
- package/lib/commonjs/steps/FaceMatchStep.js +16 -13
- package/lib/commonjs/steps/FaceMatchStep.js.map +1 -1
- package/lib/commonjs/steps/HumanBasicInfoStep.js +12 -4
- package/lib/commonjs/steps/HumanBasicInfoStep.js.map +1 -1
- package/lib/commonjs/steps/HumanExtendedInfoStep.js +15 -8
- package/lib/commonjs/steps/HumanExtendedInfoStep.js.map +1 -1
- package/lib/commonjs/steps/LegalBasicInfoStep.js +13 -6
- package/lib/commonjs/steps/LegalBasicInfoStep.js.map +1 -1
- package/lib/commonjs/steps/LegalExtendedInfoStep.js +9 -2
- package/lib/commonjs/steps/LegalExtendedInfoStep.js.map +1 -1
- package/lib/commonjs/steps/PhoneContactStep.js +5 -0
- package/lib/commonjs/steps/PhoneContactStep.js.map +1 -1
- package/lib/commonjs/steps/PhoneOtpStep.js +5 -0
- package/lib/commonjs/steps/PhoneOtpStep.js.map +1 -1
- package/lib/commonjs/steps/SwornDeclarationStep.js +16 -6
- package/lib/commonjs/steps/SwornDeclarationStep.js.map +1 -1
- package/lib/commonjs/steps/TaxInfoStep.js +10 -3
- package/lib/commonjs/steps/TaxInfoStep.js.map +1 -1
- package/lib/commonjs/steps/TermsAndConditionsStep.js +7 -0
- package/lib/commonjs/steps/TermsAndConditionsStep.js.map +1 -1
- package/lib/commonjs/steps/_shared.js +21 -0
- package/lib/commonjs/steps/_shared.js.map +1 -1
- package/lib/commonjs/types/index.js +36 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/ui/StepShell.js +10 -2
- package/lib/commonjs/ui/StepShell.js.map +1 -1
- package/lib/commonjs/ui/VelionOnboardingScreen.js +25 -5
- package/lib/commonjs/ui/VelionOnboardingScreen.js.map +1 -1
- package/lib/commonjs/ui/icons/StepIcon.js.map +1 -1
- package/lib/commonjs/ui/primitives/BackButton.js +75 -0
- package/lib/commonjs/ui/primitives/BackButton.js.map +1 -0
- package/lib/commonjs/ui/primitives/index.js +7 -0
- package/lib/commonjs/ui/primitives/index.js.map +1 -1
- package/lib/module/core/VelionOnboarding.js +297 -16
- package/lib/module/core/VelionOnboarding.js.map +1 -1
- package/lib/module/core/retryStepCopy.js +39 -0
- package/lib/module/core/retryStepCopy.js.map +1 -0
- package/lib/module/core/routingCommands.js +57 -0
- package/lib/module/core/routingCommands.js.map +1 -0
- package/lib/module/core/sessionStateMapper.js +61 -0
- package/lib/module/core/sessionStateMapper.js.map +1 -1
- package/lib/module/i18n/strings/en.js +28 -0
- package/lib/module/i18n/strings/en.js.map +1 -1
- package/lib/module/i18n/strings/es.js +28 -0
- package/lib/module/i18n/strings/es.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/steps/AddressInfoStep.js +31 -19
- package/lib/module/steps/AddressInfoStep.js.map +1 -1
- package/lib/module/steps/DocumentsOcrStep.js +4 -0
- package/lib/module/steps/DocumentsOcrStep.js.map +1 -1
- package/lib/module/steps/EmailContactStep.js +5 -0
- package/lib/module/steps/EmailContactStep.js.map +1 -1
- package/lib/module/steps/EmailOtpStep.js +5 -0
- package/lib/module/steps/EmailOtpStep.js.map +1 -1
- package/lib/module/steps/FaceMatchStep.js +16 -13
- package/lib/module/steps/FaceMatchStep.js.map +1 -1
- package/lib/module/steps/HumanBasicInfoStep.js +12 -4
- package/lib/module/steps/HumanBasicInfoStep.js.map +1 -1
- package/lib/module/steps/HumanExtendedInfoStep.js +16 -9
- package/lib/module/steps/HumanExtendedInfoStep.js.map +1 -1
- package/lib/module/steps/LegalBasicInfoStep.js +14 -7
- package/lib/module/steps/LegalBasicInfoStep.js.map +1 -1
- package/lib/module/steps/LegalExtendedInfoStep.js +10 -3
- package/lib/module/steps/LegalExtendedInfoStep.js.map +1 -1
- package/lib/module/steps/PhoneContactStep.js +5 -0
- package/lib/module/steps/PhoneContactStep.js.map +1 -1
- package/lib/module/steps/PhoneOtpStep.js +5 -0
- package/lib/module/steps/PhoneOtpStep.js.map +1 -1
- package/lib/module/steps/SwornDeclarationStep.js +18 -6
- package/lib/module/steps/SwornDeclarationStep.js.map +1 -1
- package/lib/module/steps/TaxInfoStep.js +11 -4
- package/lib/module/steps/TaxInfoStep.js.map +1 -1
- package/lib/module/steps/TermsAndConditionsStep.js +7 -0
- package/lib/module/steps/TermsAndConditionsStep.js.map +1 -1
- package/lib/module/steps/_shared.js +19 -0
- package/lib/module/steps/_shared.js.map +1 -1
- package/lib/module/types/index.js +38 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/ui/StepShell.js +10 -2
- package/lib/module/ui/StepShell.js.map +1 -1
- package/lib/module/ui/VelionOnboardingScreen.js +25 -5
- package/lib/module/ui/VelionOnboardingScreen.js.map +1 -1
- package/lib/module/ui/icons/StepIcon.js.map +1 -1
- package/lib/module/ui/primitives/BackButton.js +71 -0
- package/lib/module/ui/primitives/BackButton.js.map +1 -0
- package/lib/module/ui/primitives/index.js +1 -0
- package/lib/module/ui/primitives/index.js.map +1 -1
- package/lib/typescript/core/VelionOnboarding.d.ts +56 -2
- package/lib/typescript/core/VelionOnboarding.d.ts.map +1 -1
- package/lib/typescript/core/retryStepCopy.d.ts +27 -0
- package/lib/typescript/core/retryStepCopy.d.ts.map +1 -0
- package/lib/typescript/core/routingCommands.d.ts +39 -0
- package/lib/typescript/core/routingCommands.d.ts.map +1 -0
- package/lib/typescript/core/sessionStateMapper.d.ts +20 -1
- package/lib/typescript/core/sessionStateMapper.d.ts.map +1 -1
- package/lib/typescript/i18n/strings/en.d.ts.map +1 -1
- package/lib/typescript/i18n/strings/es.d.ts +25 -0
- package/lib/typescript/i18n/strings/es.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/steps/AddressInfoStep.d.ts.map +1 -1
- package/lib/typescript/steps/DocumentsOcrStep.d.ts.map +1 -1
- package/lib/typescript/steps/EmailContactStep.d.ts.map +1 -1
- package/lib/typescript/steps/EmailOtpStep.d.ts.map +1 -1
- package/lib/typescript/steps/FaceMatchStep.d.ts.map +1 -1
- package/lib/typescript/steps/HumanBasicInfoStep.d.ts.map +1 -1
- package/lib/typescript/steps/HumanExtendedInfoStep.d.ts.map +1 -1
- package/lib/typescript/steps/LegalBasicInfoStep.d.ts.map +1 -1
- package/lib/typescript/steps/LegalExtendedInfoStep.d.ts.map +1 -1
- package/lib/typescript/steps/PhoneContactStep.d.ts.map +1 -1
- package/lib/typescript/steps/PhoneOtpStep.d.ts.map +1 -1
- package/lib/typescript/steps/SwornDeclarationStep.d.ts.map +1 -1
- package/lib/typescript/steps/TaxInfoStep.d.ts.map +1 -1
- package/lib/typescript/steps/TermsAndConditionsStep.d.ts.map +1 -1
- package/lib/typescript/steps/_shared.d.ts +11 -0
- package/lib/typescript/steps/_shared.d.ts.map +1 -1
- package/lib/typescript/steps/types.d.ts +15 -0
- package/lib/typescript/steps/types.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +127 -5
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/ui/StepShell.d.ts +11 -1
- package/lib/typescript/ui/StepShell.d.ts.map +1 -1
- package/lib/typescript/ui/VelionOnboardingScreen.d.ts +9 -2
- package/lib/typescript/ui/VelionOnboardingScreen.d.ts.map +1 -1
- package/lib/typescript/ui/icons/StepIcon.d.ts +1 -1
- package/lib/typescript/ui/icons/StepIcon.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/BackButton.d.ts +20 -0
- package/lib/typescript/ui/primitives/BackButton.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/index.d.ts +1 -0
- package/lib/typescript/ui/primitives/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/VelionOnboarding.ts +315 -16
- package/src/core/retryStepCopy.ts +54 -0
- package/src/core/routingCommands.ts +63 -0
- package/src/core/sessionStateMapper.ts +65 -0
- package/src/i18n/strings/en.ts +33 -0
- package/src/i18n/strings/es.ts +33 -0
- package/src/index.ts +2 -0
- package/src/steps/AddressInfoStep.tsx +38 -20
- package/src/steps/DocumentsOcrStep.tsx +5 -0
- package/src/steps/EmailContactStep.tsx +6 -0
- package/src/steps/EmailOtpStep.tsx +6 -0
- package/src/steps/FaceMatchStep.tsx +18 -19
- package/src/steps/HumanBasicInfoStep.tsx +16 -4
- package/src/steps/HumanExtendedInfoStep.tsx +18 -9
- package/src/steps/LegalBasicInfoStep.tsx +16 -7
- package/src/steps/LegalExtendedInfoStep.tsx +16 -3
- package/src/steps/PhoneContactStep.tsx +6 -0
- package/src/steps/PhoneOtpStep.tsx +6 -0
- package/src/steps/SwornDeclarationStep.tsx +23 -6
- package/src/steps/TaxInfoStep.tsx +15 -4
- package/src/steps/TermsAndConditionsStep.tsx +8 -0
- package/src/steps/_shared.ts +25 -0
- package/src/steps/types.ts +15 -0
- package/src/types/index.ts +131 -3
- package/src/ui/StepShell.tsx +17 -0
- package/src/ui/VelionOnboardingScreen.tsx +36 -2
- package/src/ui/icons/StepIcon.tsx +2 -1
- package/src/ui/primitives/BackButton.tsx +65 -0
- package/src/ui/primitives/index.ts +1 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileoverview BackButton — the "Atrás" / "Back" control for reversible steps.
|
|
5
|
+
*
|
|
6
|
+
* A small, top-left chevron-back pill rendered by `StepShell` only when the
|
|
7
|
+
* current step is reversible (the backend's `reversible` flag drives this; the
|
|
8
|
+
* SDK never decides reversibility on its own). Tapping it asks the orchestrator
|
|
9
|
+
* to navigate to the previous reversible step — the actual transition is driven
|
|
10
|
+
* by the backend's `ROUTING_COMMAND / PREVIOUS_STEP` over SSE.
|
|
11
|
+
*
|
|
12
|
+
* The chevron uses `MaterialIcons` (via `StepIcon`); when `@expo/vector-icons`
|
|
13
|
+
* is unavailable the icon falls back gracefully and only the label shows.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { Pressable, StyleSheet, Text } from 'react-native';
|
|
17
|
+
import { useTheme, withAlpha } from '../theme';
|
|
18
|
+
import { StepIcon } from '../icons/StepIcon';
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
export function BackButton({
|
|
21
|
+
label,
|
|
22
|
+
onPress,
|
|
23
|
+
disabled = false
|
|
24
|
+
}) {
|
|
25
|
+
const theme = useTheme();
|
|
26
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
27
|
+
accessibilityRole: "button",
|
|
28
|
+
accessibilityLabel: label,
|
|
29
|
+
accessibilityState: {
|
|
30
|
+
disabled
|
|
31
|
+
},
|
|
32
|
+
disabled: disabled,
|
|
33
|
+
onPress: onPress,
|
|
34
|
+
hitSlop: 8,
|
|
35
|
+
style: ({
|
|
36
|
+
pressed
|
|
37
|
+
}) => [styles.base, pressed && !disabled && {
|
|
38
|
+
backgroundColor: withAlpha(theme.textColor, 0.06)
|
|
39
|
+
}, disabled && styles.disabled],
|
|
40
|
+
children: [/*#__PURE__*/_jsx(StepIcon, {
|
|
41
|
+
name: "chevron-left",
|
|
42
|
+
size: 20,
|
|
43
|
+
color: theme.textColor
|
|
44
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
45
|
+
style: [styles.label, {
|
|
46
|
+
color: theme.textColor
|
|
47
|
+
}],
|
|
48
|
+
children: label
|
|
49
|
+
})]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
base: {
|
|
54
|
+
flexDirection: 'row',
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
alignSelf: 'flex-start',
|
|
57
|
+
minHeight: 44,
|
|
58
|
+
paddingRight: 10,
|
|
59
|
+
paddingVertical: 6,
|
|
60
|
+
marginLeft: -4
|
|
61
|
+
},
|
|
62
|
+
disabled: {
|
|
63
|
+
opacity: 0.45
|
|
64
|
+
},
|
|
65
|
+
label: {
|
|
66
|
+
fontSize: 15,
|
|
67
|
+
fontWeight: '600',
|
|
68
|
+
marginLeft: 2
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//# sourceMappingURL=BackButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","StyleSheet","Text","useTheme","withAlpha","StepIcon","jsx","_jsx","jsxs","_jsxs","BackButton","label","onPress","disabled","theme","accessibilityRole","accessibilityLabel","accessibilityState","hitSlop","style","pressed","styles","base","backgroundColor","textColor","children","name","size","color","create","flexDirection","alignItems","alignSelf","minHeight","paddingRight","paddingVertical","marginLeft","opacity","fontSize","fontWeight"],"sourceRoot":"../../../../src","sources":["ui/primitives/BackButton.tsx"],"mappings":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4B,MAAM,CAAC;EAC/BP,IAAI,EAAE;IACJQ,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,YAAY;IACvBC,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAE,CAAC;IAClBC,UAAU,EAAE,CAAC;EACf,CAAC;EACDvB,QAAQ,EAAE;IACRwB,OAAO,EAAE;EACX,CAAC;EACD1B,KAAK,EAAE;IACL2B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBH,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Button","Input","Select","Card","Banner","Spinner","Checkbox","DatePicker","CountrySelect"],"sourceRoot":"../../../../src","sources":["ui/primitives/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAA8C,UAAU;AACvE,SAASC,KAAK,QAAyB,SAAS;AAChD,SAASC,MAAM,QAA6C,UAAU;AACtE,SAASC,IAAI,QAAwB,QAAQ;AAC7C,SAASC,MAAM,QAA0B,UAAU;AACnD,SAASC,OAAO,QAA2B,WAAW;AACtD,SAASC,QAAQ,QAA4B,YAAY;AACzD,SAASC,UAAU,QAA8B,cAAc;AAC/D,SAASC,aAAa,QAAiC,iBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Button","BackButton","Input","Select","Card","Banner","Spinner","Checkbox","DatePicker","CountrySelect"],"sourceRoot":"../../../../src","sources":["ui/primitives/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAA8C,UAAU;AACvE,SAASC,UAAU,QAA8B,cAAc;AAC/D,SAASC,KAAK,QAAyB,SAAS;AAChD,SAASC,MAAM,QAA6C,UAAU;AACtE,SAASC,IAAI,QAAwB,QAAQ;AAC7C,SAASC,MAAM,QAA0B,UAAU;AACnD,SAASC,OAAO,QAA2B,WAAW;AACtD,SAASC,QAAQ,QAA4B,YAAY;AACzD,SAASC,UAAU,QAA8B,cAAc;AAC/D,SAASC,aAAa,QAAiC,iBAAiB","ignoreList":[]}
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
* Invariants:
|
|
9
9
|
* - SSE dedupe by `event_id` (monotonic)
|
|
10
10
|
* - Suppress duplicate `NEXT_STEP` for the just-completed step
|
|
11
|
+
* - `RETRY_STEP` shows a retry dialog (Retry re-mounts the step, Cancel exits);
|
|
12
|
+
* once the retry quota is exhausted the backend emits SESSION_DECLINED instead
|
|
11
13
|
* - 45 s watchdog for terminal SSE event after final step → fallback GET
|
|
12
14
|
* - SESSION_DECLINED handling races with module.run()
|
|
13
15
|
*/
|
|
14
|
-
import { type VelionConfig as WebVelionConfig, type SdkStatus, type SdkEventMap, type SdkError, type OnboardingResult } from '../types';
|
|
15
|
-
import type
|
|
16
|
+
import { type VelionConfig as WebVelionConfig, type SdkStatus, type SdkEventMap, type SdkError, type OnboardingResult, type OnboardingExit } from '../types';
|
|
17
|
+
import { type ReactNode } from 'react';
|
|
16
18
|
/**
|
|
17
19
|
* RN-specific config. Drops web-only fields (`containerId`, `allowEmbedded`,
|
|
18
20
|
* `iframeParentOrigin`) and keeps everything else identical to
|
|
@@ -34,6 +36,8 @@ export interface OrchestratorView {
|
|
|
34
36
|
setStepNode?: (node: ReactNode | null) => void;
|
|
35
37
|
setError?: (err: SdkError) => void;
|
|
36
38
|
setResult?: (result: OnboardingResult) => void;
|
|
39
|
+
/** Called when the user leaves the flow via back on the first step. */
|
|
40
|
+
setExit?: (exit: OnboardingExit) => void;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
43
|
* Top-level entry point. Instantiate once per session, call `start()`, and
|
|
@@ -55,6 +59,16 @@ export declare class VelionOnboarding {
|
|
|
55
59
|
private sseNextStepResolve;
|
|
56
60
|
private queuedNextStepCommand;
|
|
57
61
|
private lastSseEventId;
|
|
62
|
+
private previousStepResolve;
|
|
63
|
+
private queuedPreviousStepCommand;
|
|
64
|
+
private backExitResolve;
|
|
65
|
+
private queuedBackExitStep;
|
|
66
|
+
private backRequestInFlight;
|
|
67
|
+
/** Resolver for the in-flight retry dialog (RETRY_STEP), cleared on destroy. */
|
|
68
|
+
private retryDialogResolve;
|
|
69
|
+
/** Per-step reversibility (workflow order) cached from the initial GET, used to
|
|
70
|
+
* derive `can_go_back` for steps reached via SSE (which doesn't carry it). */
|
|
71
|
+
private stepReversibility;
|
|
58
72
|
private sessionDeclineHandler;
|
|
59
73
|
private pendingSessionDeclined;
|
|
60
74
|
private pendingTerminalEvent;
|
|
@@ -80,10 +94,38 @@ export declare class VelionOnboarding {
|
|
|
80
94
|
private finalizeSessionWithTerminalEvent;
|
|
81
95
|
private finalizeSessionSingleGet;
|
|
82
96
|
private completeFlow;
|
|
97
|
+
/**
|
|
98
|
+
* Ends the flow without a verdict and notifies the host via `onExit`. Not an
|
|
99
|
+
* error: the UI is cleared so the host can dismiss the SDK. Triggered by
|
|
100
|
+
* backing out of the first reversible step (`BACK_EXIT`) or cancelling the
|
|
101
|
+
* retry dialog (`RETRY_CANCELLED`).
|
|
102
|
+
*/
|
|
103
|
+
private exitFlow;
|
|
104
|
+
/**
|
|
105
|
+
* Mounts the retry dialog for a `RETRY_STEP` and resolves with the user's
|
|
106
|
+
* choice. Copy is derived from the step (not the backend `reason`, which is a
|
|
107
|
+
* diagnostic string) and can be overridden per-step via `retryStepTexts`.
|
|
108
|
+
*/
|
|
109
|
+
private presentRetryStepDialog;
|
|
83
110
|
private endFlowWithSessionDeclined;
|
|
84
111
|
private openSseStream;
|
|
85
112
|
private handleSseEvent;
|
|
86
113
|
private extractNextStepCommand;
|
|
114
|
+
/**
|
|
115
|
+
* Fire-and-forget reverse navigation. POSTs `/sessions/:id/back`; the actual
|
|
116
|
+
* step transition arrives via SSE (`PREVIOUS_STEP`). A `400` (session not
|
|
117
|
+
* IN_PROGRESS) or any other failure is swallowed — the user keeps editing the
|
|
118
|
+
* current step. De-duplicated so rapid taps don't stack requests.
|
|
119
|
+
*/
|
|
120
|
+
private requestBackNavigation;
|
|
121
|
+
/**
|
|
122
|
+
* Derives `can_go_back` for a step from the cached workflow reversibility map.
|
|
123
|
+
* Matches the backend's barrier model: a step can go back when any earlier
|
|
124
|
+
* step is reversible (navigate) or the step itself is the first reversible one
|
|
125
|
+
* (back exits). Fallback only — an explicit `can_go_back` from the backend
|
|
126
|
+
* (GET, or a ROUTING_COMMAND that carries it) always wins.
|
|
127
|
+
*/
|
|
128
|
+
private resolveCanGoBack;
|
|
87
129
|
/**
|
|
88
130
|
* Wait for the next ROUTING_COMMAND. The orchestrator races this with a 30 s
|
|
89
131
|
* timeout that, on fire, falls back to a fresh GET /sessions/:id to recover
|
|
@@ -98,6 +140,18 @@ export declare class VelionOnboarding {
|
|
|
98
140
|
* by the consumed event.
|
|
99
141
|
*/
|
|
100
142
|
private consumePendingTerminalEvent;
|
|
143
|
+
/**
|
|
144
|
+
* Runs the active step, resolving on the first of:
|
|
145
|
+
* - `completed` — the module's `run()` resolved (user advanced),
|
|
146
|
+
* - `declined` — SESSION_DECLINED arrived mid-step,
|
|
147
|
+
* - `back` — a PREVIOUS_STEP routing command arrived (user tapped back),
|
|
148
|
+
* - `exit` — a BACK_EXIT routing command arrived (back on the first
|
|
149
|
+
* reversible step → leave the flow).
|
|
150
|
+
*
|
|
151
|
+
* Rejects only if `run()` itself throws. Used in place of the plain decline
|
|
152
|
+
* race for the step loop so reverse navigation can interrupt an active form.
|
|
153
|
+
*/
|
|
154
|
+
private awaitModuleOutcome;
|
|
101
155
|
/**
|
|
102
156
|
* Race a step's promise against SESSION_DECLINED. If decline arrives first,
|
|
103
157
|
* `declined` is true so the caller can short-circuit cleanup.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VelionOnboarding.d.ts","sourceRoot":"","sources":["../../../src/core/VelionOnboarding.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"VelionOnboarding.d.ts","sourceRoot":"","sources":["../../../src/core/VelionOnboarding.ts"],"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hB;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;IA8B9B,OAAO,CAAC,0BAA0B;IA4BlC,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,cAAc;IA4GtB,OAAO,CAAC,sBAAsB;IAgB9B;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAe7B;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IAwDtC,OAAO,CAAC,kCAAkC;IAI1C,OAAO,CAAC,uBAAuB;IAqB/B;;;;OAIG;YACW,2BAA2B;IAYzC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,kBAAkB;IAoC1B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAkC9B,OAAO,CAAC,qBAAqB;IAgB7B,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,WAAW;CAGpB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Copy resolution for the retry dialog shown on
|
|
3
|
+
* `ROUTING_COMMAND / RETRY_STEP` (a step failed but the retry quota is not yet
|
|
4
|
+
* exhausted, so the backend asks the SDK to re-present it).
|
|
5
|
+
*
|
|
6
|
+
* The backend `reason` is intentionally NOT used here: it is a diagnostic string
|
|
7
|
+
* (e.g. `"STEP_FAILED_RETRY_ALLOWED (attempt 1/3)"`), not user-facing localized
|
|
8
|
+
* copy. The dialog title/message are derived from the step being retried, with a
|
|
9
|
+
* generic fallback, and can be overridden per-step by the host via
|
|
10
|
+
* `VelionConfig.retryStepTexts`.
|
|
11
|
+
*/
|
|
12
|
+
import type { OnboardingStep, VelionRetryStepTexts } from '../types';
|
|
13
|
+
export interface ResolvedRetryStepCopy {
|
|
14
|
+
title: string;
|
|
15
|
+
message: string;
|
|
16
|
+
retryLabel: string;
|
|
17
|
+
cancelLabel: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Resolves the retry dialog copy for `step`. Precedence for title/message:
|
|
21
|
+
* 1. host override (`retryStepTexts[step][lang]`),
|
|
22
|
+
* 2. SDK per-step default (i18n `retryStep.steps[step]`),
|
|
23
|
+
* 3. generic SDK default (i18n `retryStep.default*`).
|
|
24
|
+
* The retry/cancel button labels always come from the i18n table.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveRetryStepCopy(locale: string | undefined, texts: VelionRetryStepTexts | undefined, step: OnboardingStep): ResolvedRetryStepCopy;
|
|
27
|
+
//# sourceMappingURL=retryStepCopy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retryStepCopy.d.ts","sourceRoot":"","sources":["../../../src/core/retryStepCopy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAMD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,KAAK,EAAE,oBAAoB,GAAG,SAAS,EACvC,IAAI,EAAE,cAAc,GACnB,qBAAqB,CAgBvB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Pure parsers for SSE `ROUTING_COMMAND` payloads.
|
|
3
|
+
*
|
|
4
|
+
* Kept free of React Native imports so they can be unit-tested in a plain node
|
|
5
|
+
* environment. The orchestrator owns the side effects (navigation, POSTs); these
|
|
6
|
+
* functions only translate a raw `OnboardingSessionEvent` into a typed command.
|
|
7
|
+
*/
|
|
8
|
+
import type { OnboardingSessionEvent, OnboardingStep } from '../types';
|
|
9
|
+
/**
|
|
10
|
+
* Reverse-navigation command (`ROUTING_COMMAND / PREVIOUS_STEP`). Carries the
|
|
11
|
+
* re-opened step plus its config and the previously-captured data for prefill.
|
|
12
|
+
*/
|
|
13
|
+
export interface PreviousStepCommand {
|
|
14
|
+
step: OnboardingStep;
|
|
15
|
+
stepConfig?: Record<string, unknown>;
|
|
16
|
+
stepResult?: Record<string, unknown>;
|
|
17
|
+
/** Whether the re-opened step can itself go back further (when the backend sends it). */
|
|
18
|
+
canGoBack?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Parses a reverse-navigation command from an SSE event. Returns `null` for any
|
|
22
|
+
* event that is not a `ROUTING_COMMAND` with `action === 'PREVIOUS_STEP'` and a
|
|
23
|
+
* `step_code`. `step_config` (config) and `step_result` (prefill) are forwarded
|
|
24
|
+
* when present.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parsePreviousStepCommand(event: OnboardingSessionEvent): PreviousStepCommand | null;
|
|
27
|
+
/** Back-exit command (`ROUTING_COMMAND / BACK_EXIT`): leave the flow entirely. */
|
|
28
|
+
export interface BackExitCommand {
|
|
29
|
+
/** The step the user exited from (`step_code`), when the backend provides it. */
|
|
30
|
+
step?: OnboardingStep;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Parses a back-exit command from an SSE event. The backend emits this when the
|
|
34
|
+
* user taps "back" on the first reversible step (no earlier step to return to),
|
|
35
|
+
* signalling the SDK to leave the flow. Returns `null` for any other event.
|
|
36
|
+
* `step_code` is forwarded when present but is not required.
|
|
37
|
+
*/
|
|
38
|
+
export declare function parseBackExitCommand(event: OnboardingSessionEvent): BackExitCommand | null;
|
|
39
|
+
//# sourceMappingURL=routingCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routingCommands.d.ts","sourceRoot":"","sources":["../../../src/core/routingCommands.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,yFAAyF;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,sBAAsB,GAC5B,mBAAmB,GAAG,IAAI,CAW5B;AAED,kFAAkF;AAClF,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,sBAAsB,GAC5B,eAAe,GAAG,IAAI,CAKxB"}
|
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Maps backend OnboardingDto (GET /sessions/:id) to SDK SessionState.
|
|
3
3
|
*/
|
|
4
|
-
import type { OnboardingDtoResponse, OnboardingResult, SessionState } from '../types';
|
|
4
|
+
import type { OnboardingDtoResponse, OnboardingResult, OnboardingStep, SessionState } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Maps the onboarding DTO returned by GET /sessions/:sessionId to the
|
|
7
7
|
* SessionState shape used by the step machine.
|
|
8
8
|
*/
|
|
9
9
|
export declare function mapOnboardingDtoToSessionState(dto: OnboardingDtoResponse): SessionState;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves whether a step is reversible. Prefers an explicit boolean flag
|
|
12
|
+
* (e.g. `current_step.reversible`); otherwise reads the `reversible` key the
|
|
13
|
+
* backend stamps into the step config. Returns `undefined` when neither source
|
|
14
|
+
* carries the flag, so callers can distinguish "not reversible" from "unknown".
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveReversibleFlag(explicit: boolean | undefined, config: Record<string, unknown> | undefined): boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Derives `can_go_back` for a step from the workflow reversibility map (used as a
|
|
19
|
+
* fallback when the backend doesn't send `can_go_back` explicitly — e.g. on a
|
|
20
|
+
* step reached via SSE). Matches the backend's barrier model: a step can go back
|
|
21
|
+
* when any earlier step is reversible (navigate to it) or the step itself is the
|
|
22
|
+
* first reversible step (back exits the flow). Returns `false` when the step is
|
|
23
|
+
* not in the cached order.
|
|
24
|
+
*/
|
|
25
|
+
export declare function deriveCanGoBack(step: OnboardingStep, order: ReadonlyArray<{
|
|
26
|
+
code: OnboardingStep;
|
|
27
|
+
reversible: boolean;
|
|
28
|
+
}>): boolean;
|
|
10
29
|
/**
|
|
11
30
|
* Maps GET /sessions `status` to {@link OnboardingResult.status}.
|
|
12
31
|
* Unknown values fall back to `MANUAL_REVIEW`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionStateMapper.d.ts","sourceRoot":"","sources":["../../../src/core/sessionStateMapper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"sessionStateMapper.d.ts","sourceRoot":"","sources":["../../../src/core/sessionStateMapper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,EAGb,MAAM,UAAU,CAAC;AAIlB;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,qBAAqB,GACzB,YAAY,CAmFd;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC1C,OAAO,GAAG,SAAS,CAMrB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GAClE,OAAO,CAMT;AAeD;;;GAGG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,gBAAgB,CAAC,QAAQ,CAAC,CAO5B;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAS/E;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAGpF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,qBAAqB,EAC1B,SAAS,EAAE,MAAM,GAChB,gBAAgB,CAGlB;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,GAAG,EAAE,qBAAqB,EAC1B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAC1C,cAAc,CAAC,EAAE,MAAM,GACtB,gBAAgB,CAElB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/i18n/strings/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,eAAO,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/i18n/strings/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,eAAO,MAAM,EAAE,EAAE,YAgUhB,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const ES: {
|
|
|
13
13
|
retry: string;
|
|
14
14
|
confirm: string;
|
|
15
15
|
required: string;
|
|
16
|
+
back: string;
|
|
16
17
|
submissionTitle: string;
|
|
17
18
|
submissionFallback: string;
|
|
18
19
|
};
|
|
@@ -256,6 +257,30 @@ export declare const ES: {
|
|
|
256
257
|
rejectedBody: string;
|
|
257
258
|
declineHeadline: string;
|
|
258
259
|
};
|
|
260
|
+
retryStep: {
|
|
261
|
+
retry: string;
|
|
262
|
+
cancel: string;
|
|
263
|
+
defaultTitle: string;
|
|
264
|
+
defaultMessage: string;
|
|
265
|
+
steps: {
|
|
266
|
+
LIVENESS_MATCH: {
|
|
267
|
+
title: string;
|
|
268
|
+
message: string;
|
|
269
|
+
};
|
|
270
|
+
DOCUMENTS_OCR: {
|
|
271
|
+
title: string;
|
|
272
|
+
message: string;
|
|
273
|
+
};
|
|
274
|
+
HUMAN_BASIC_INFO: {
|
|
275
|
+
title: string;
|
|
276
|
+
message: string;
|
|
277
|
+
};
|
|
278
|
+
TAX_INFO: {
|
|
279
|
+
title: string;
|
|
280
|
+
message: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
259
284
|
};
|
|
260
285
|
export type StringsTable = typeof ES;
|
|
261
286
|
//# sourceMappingURL=es.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../src/i18n/strings/es.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../src/i18n/strings/es.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Td,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,EAAE,CAAC"}
|
|
@@ -21,6 +21,6 @@ export { LoadingOverlay, RetryDialog, ProgressBar, PROGRESS_BAR, } from './ui/ov
|
|
|
21
21
|
export { useInlineValidation, required, minLength, pattern, compose, type FieldRule, type InlineValidationHandle, type FieldValidator, } from './ui/forms';
|
|
22
22
|
export { getStrings, resolveLocale, type SupportedLocale } from './i18n';
|
|
23
23
|
export { SdkErrorCode, CameraErrorCode, } from './types';
|
|
24
|
-
export type { OnboardingStep, OnboardingStepStatus, OnboardingType, OnboardingResult, OnboardingSessionEvent, OnboardingDtoResponse, SessionState, SdkError, SdkStatus, VelionTheme, VelionFinalResultScreenTexts, VelionFinalResultStatusCopy, VelionSessionDeclinedReasonTexts, VelionSessionDeclinedReasonMessages, VelionCallbacks, HumanBasicInfoStepConfig, HumanExtendedInfoStepConfig, TaxInfoStepConfig, AddressInfoStepConfig, SwornDeclarationStepConfig, DocumentsOcrStepConfig, TermsAndConditionsStepConfig, HumanBasicInfoPayload, LegalBasicInfoPayload, HumanExtendedInfoPayload, LegalExtendedInfoPayload, AddressInfoPayload, SwornDeclarationPayload, EmailContactPayload, PhoneContactPayload, TaxInfoPayload, TaxInfoConfig, TaxInfoOption, TermsAndConditionsItem, TermsAndConditionsAcceptancePayload, TermsAndConditionsSubmitPayload, SessionCreationResponse, LivenessSessionResponse, } from './types';
|
|
24
|
+
export type { OnboardingStep, OnboardingStepStatus, OnboardingType, OnboardingResult, OnboardingExit, OnboardingSessionEvent, OnboardingDtoResponse, SessionState, SdkError, SdkStatus, VelionTheme, VelionFinalResultScreenTexts, VelionFinalResultStatusCopy, VelionSessionDeclinedReasonTexts, VelionSessionDeclinedReasonMessages, VelionRetryStepTexts, VelionCallbacks, HumanBasicInfoStepConfig, HumanExtendedInfoStepConfig, TaxInfoStepConfig, AddressInfoStepConfig, SwornDeclarationStepConfig, DocumentsOcrStepConfig, TermsAndConditionsStepConfig, HumanBasicInfoPayload, LegalBasicInfoPayload, HumanExtendedInfoPayload, LegalExtendedInfoPayload, AddressInfoPayload, SwornDeclarationPayload, EmailContactPayload, PhoneContactPayload, TaxInfoPayload, TaxInfoConfig, TaxInfoOption, TermsAndConditionsItem, TermsAndConditionsAcceptancePayload, TermsAndConditionsSubmitPayload, SessionCreationResponse, LivenessSessionResponse, } from './types';
|
|
25
25
|
export { SDK_VERSION } from './utils/sdkVersion';
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EACV,YAAY,EACZ,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,MAAM,EACN,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,MAAM,EACN,KAAK,EACL,MAAM,EACN,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,OAAO,EACP,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,cAAc,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAIzE,OAAO,EACL,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,4BAA4B,EAC5B,2BAA2B,EAC3B,gCAAgC,EAChC,mCAAmC,EACnC,eAAe,EAEf,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAE5B,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,mCAAmC,EACnC,+BAA+B,EAE/B,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EACV,YAAY,EACZ,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,EACpB,eAAe,EAEf,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAE5B,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,mCAAmC,EACnC,+BAA+B,EAE/B,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/AddressInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKpD,qBAAa,eAAgB,YAAW,UAAU;IAKpC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AddressInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/AddressInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKpD,qBAAa,eAAgB,YAAW,UAAU;IAKpC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA4BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentsOcrStep.d.ts","sourceRoot":"","sources":["../../../src/steps/DocumentsOcrStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiCH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAsBpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"DocumentsOcrStep.d.ts","sourceRoot":"","sources":["../../../src/steps/DocumentsOcrStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiCH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAsBpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailContactStep.d.ts","sourceRoot":"","sources":["../../../src/steps/EmailContactStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"EmailContactStep.d.ts","sourceRoot":"","sources":["../../../src/steps/EmailContactStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailOtpStep.d.ts","sourceRoot":"","sources":["../../../src/steps/EmailOtpStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,YAAa,YAAW,UAAU;IAKjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"EmailOtpStep.d.ts","sourceRoot":"","sources":["../../../src/steps/EmailOtpStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,YAAa,YAAW,UAAU;IAKjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaceMatchStep.d.ts","sourceRoot":"","sources":["../../../src/steps/FaceMatchStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"FaceMatchStep.d.ts","sourceRoot":"","sources":["../../../src/steps/FaceMatchStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKpD,qBAAa,aAAc,YAAW,UAAU;IAMlC,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,eAAe,CAAyB;gBAEnB,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IASpB,OAAO,IAAI,IAAI;YAOD,IAAI;CAgEnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HumanBasicInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/HumanBasicInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAwBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"HumanBasicInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/HumanBasicInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAwBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAUpD,qBAAa,kBAAmB,YAAW,UAAU;IAKvC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HumanExtendedInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/HumanExtendedInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAsBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,qBAAsB,YAAW,UAAU;IAK1C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"HumanExtendedInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/HumanExtendedInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAsBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,qBAAsB,YAAW,UAAU;IAK1C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA6BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalBasicInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/LegalBasicInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,kBAAmB,YAAW,UAAU;IAKvC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"LegalBasicInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/LegalBasicInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,kBAAmB,YAAW,UAAU;IAKvC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalExtendedInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/LegalExtendedInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,qBAAsB,YAAW,UAAU;IAK1C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"LegalExtendedInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/LegalExtendedInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,qBAAsB,YAAW,UAAU;IAK1C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneContactStep.d.ts","sourceRoot":"","sources":["../../../src/steps/PhoneContactStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"PhoneContactStep.d.ts","sourceRoot":"","sources":["../../../src/steps/PhoneContactStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneOtpStep.d.ts","sourceRoot":"","sources":["../../../src/steps/PhoneOtpStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,YAAa,YAAW,UAAU;IAKjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"PhoneOtpStep.d.ts","sourceRoot":"","sources":["../../../src/steps/PhoneOtpStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,YAAa,YAAW,UAAU;IAKjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwornDeclarationStep.d.ts","sourceRoot":"","sources":["../../../src/steps/SwornDeclarationStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"SwornDeclarationStep.d.ts","sourceRoot":"","sources":["../../../src/steps/SwornDeclarationStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAWpD,qBAAa,oBAAqB,YAAW,UAAU;IAKzC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaxInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/TaxInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAwBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,WAAY,YAAW,UAAU;IAKhC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"TaxInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/TaxInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAwBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,WAAY,YAAW,UAAU;IAKhC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TermsAndConditionsStep.d.ts","sourceRoot":"","sources":["../../../src/steps/TermsAndConditionsStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAuBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,sBAAuB,YAAW,UAAU;IAK3C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"TermsAndConditionsStep.d.ts","sourceRoot":"","sources":["../../../src/steps/TermsAndConditionsStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAuBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,sBAAuB,YAAW,UAAU;IAK3C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -8,4 +8,15 @@ export declare function toSubmissionError(err: unknown, t: StringsTable): SdkErr
|
|
|
8
8
|
export declare function isEmail(value: string): boolean;
|
|
9
9
|
export declare function isE164Phone(value: string): boolean;
|
|
10
10
|
export declare function isOtpCode(value: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Reads a string field from a step's prefill `result` map (sent by the backend
|
|
13
|
+
* on reverse navigation). Returns `''` when absent or not a string, so it can
|
|
14
|
+
* seed a controlled text input directly.
|
|
15
|
+
*/
|
|
16
|
+
export declare function prefillString(result: Record<string, unknown> | undefined, key: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Like {@link prefillString} but returns `null` for empty/absent values — handy
|
|
19
|
+
* for `<Select>` / `<CountrySelect>` / `<DatePicker>` whose empty state is `null`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function prefillStringOrNull(result: Record<string, unknown> | undefined, key: string): string | null;
|
|
11
22
|
//# sourceMappingURL=_shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../src/steps/_shared.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,YAAY,GAAG,QAAQ,CAkBzE;AAOD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE9C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEhD"}
|
|
1
|
+
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../src/steps/_shared.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,YAAY,GAAG,QAAQ,CAkBzE;AAOD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE9C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC3C,GAAG,EAAE,MAAM,GACV,MAAM,CAGR;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC3C,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,IAAI,CAGf"}
|
|
@@ -38,6 +38,21 @@ export interface StepDeps {
|
|
|
38
38
|
ui: StepUiHandle;
|
|
39
39
|
step: OnboardingStep;
|
|
40
40
|
stepConfig?: Record<string, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Previously-captured data for this step, used as form prefill when the step
|
|
43
|
+
* is re-opened by a reverse navigation (`ROUTING_COMMAND / PREVIOUS_STEP`) or
|
|
44
|
+
* resumed from GET `current_step.result`. Treat it as editable initial state —
|
|
45
|
+
* never re-fire side effects (no re-sending OTPs, no re-uploading documents).
|
|
46
|
+
*/
|
|
47
|
+
stepResult?: Record<string, unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* Requests reverse navigation. Present only when the backend reports the user
|
|
50
|
+
* can go back from this step (`can_go_back`); steps render the "back" (chevron)
|
|
51
|
+
* control iff this is set. Fire-and-forget: the orchestrator POSTs
|
|
52
|
+
* `/sessions/:id/back` and the actual transition is driven by the backend over
|
|
53
|
+
* SSE (PREVIOUS_STEP to a prior step, or BACK_EXIT to leave the flow).
|
|
54
|
+
*/
|
|
55
|
+
onBack?: () => void;
|
|
41
56
|
/**
|
|
42
57
|
* Google Maps Platform API key (Maps + Places). Forwarded to the assisted
|
|
43
58
|
* `ADDRESS_INFO` flow when the consumer passes it via `VelionConfig`. Steps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;CACvC;AAED,yDAAyD;AACzD,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,SAAS,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,EAAE,EAAE,YAAY,CAAC;IACjB,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE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