@incodetech/web 0.0.0-dev-20260930-90072124 → 0.0.0-dev-20260930-d4ff5ab8
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/{countryFlag-33dQ3DJy.js → countryFlag-DS33VRIP.js} +1 -1
- package/dist/{countrySelector-LnS8nCl-.js → countrySelector-BpUlsiLE.js} +1 -1
- package/dist/dynamic-forms/dynamic-forms.es.js +1 -1
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-DzkM7I5Q.js → ekybModule-BYH9t2ks.js} +1 -1
- package/dist/ekybModule-Nso6AY_7.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-DgfxdYsW.js → ekycModule-BiXBeEtb.js} +1 -1
- package/dist/ekycModule-Dk0PUTOR.js +2 -0
- package/dist/extensibility.es.js +2 -2
- package/dist/{flipAnimation-jmeDuKt7.js → flipAnimation-DVTFT-BK.js} +1 -1
- package/dist/flow/flow.es.js +1 -1
- package/dist/id/id.es.js +1 -1
- package/dist/identity-reuse/identity-reuse.es.js +1 -1
- package/dist/phone/phone.es.js +1 -1
- package/dist/phoneInputComposed-Dfcs9ZZZ.js +189 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +1 -1
- package/dist/{resolveApiKey-Dg2lsXAS.js → resolveApiKey-Bu5vntnL.js} +3 -3
- package/dist/{smsTabContent-D9hOG4_J.js → smsTabContent-BarTuY2J.js} +1 -1
- package/dist/types/extensibility.d.ts +1 -2
- package/dist/{watchlistForBusiness-DZw8avqO.js → watchlistForBusiness-Cmu1ccIm.js} +1 -1
- package/dist/workflow/workflow.es.js +1 -1
- package/package.json +2 -3
- package/dist/ekybModule-Bmtj2msG.js +0 -2
- package/dist/ekycModule-DLeZGRVc.js +0 -2
- package/dist/phoneInputComposed-CzKi5P8k.js +0 -11784
- /package/dist/{countryDefinitions--cMU_Kz7.js → countryDefinitions-CNBB-gAl.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getAlpha2FromAlpha3 } from "./countryDefinitions
|
|
1
|
+
import { n as getAlpha2FromAlpha3 } from "./countryDefinitions-CNBB-gAl.js";
|
|
2
2
|
//#region src/shared/countries/countryFlag.ts
|
|
3
3
|
/** Codepoint offset from 'A' to REGIONAL INDICATOR SYMBOL LETTER A. */
|
|
4
4
|
var REGIONAL_INDICATOR_OFFSET = 127462 - "A".charCodeAt(0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as useTranslation } from "./uiConfig-BVawPHYQ.js";
|
|
2
2
|
import { u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
3
|
import { t as DropdownComposed } from "./dropdownComposed-kRViL6gh.js";
|
|
4
|
-
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-
|
|
4
|
+
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-DS33VRIP.js";
|
|
5
5
|
//#region src/shared/countrySelector/countrySelector.tsx
|
|
6
6
|
var DEFAULT_COUNTRY_CODES = [
|
|
7
7
|
"BR",
|
|
@@ -5,7 +5,7 @@ import { x as Button } from "../icons-_6VTEfit.js";
|
|
|
5
5
|
import { t as Page } from "../page-C_UpHKFE.js";
|
|
6
6
|
import { t as VerificationResult } from "../verificationResult-Dmhbihmv.js";
|
|
7
7
|
import { t as InputComposed } from "../inputComposed-DzKSsmPB.js";
|
|
8
|
-
import { n as countries, t as PhoneInputComposed } from "../phoneInputComposed-
|
|
8
|
+
import { n as countries, t as PhoneInputComposed } from "../phoneInputComposed-Dfcs9ZZZ.js";
|
|
9
9
|
import { t as DropdownComposed } from "../dropdownComposed-kRViL6gh.js";
|
|
10
10
|
import { t as DateInputComposed } from "../dateInputComposed-w4j9RRsy.js";
|
|
11
11
|
import { t as registerIncodeModuleElement } from "../incodeModule-cyY6mFRn.js";
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-BYH9t2ks.js";
|
|
2
2
|
export { EkybModule };
|
|
@@ -11,7 +11,7 @@ import { n as translateError, t as FormField } from "./formField-DpAYxeQG.js";
|
|
|
11
11
|
import { t as DropdownComposed } from "./dropdownComposed-kRViL6gh.js";
|
|
12
12
|
import { t as registerIncodeModuleElement } from "./incodeModule-cyY6mFRn.js";
|
|
13
13
|
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-DeU5avOo.js";
|
|
14
|
-
import { t as CountrySelector$1 } from "./countrySelector-
|
|
14
|
+
import { t as CountrySelector$1 } from "./countrySelector-BpUlsiLE.js";
|
|
15
15
|
import { DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager } from "@incodetech/core/ekyb";
|
|
16
16
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
17
17
|
var CountrySelector = ({ value, onChange }) => {
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkycModule } from "../ekycModule-
|
|
1
|
+
import { t as EkycModule } from "../ekycModule-BiXBeEtb.js";
|
|
2
2
|
export { EkycModule };
|
|
@@ -7,7 +7,7 @@ import { t as Page } from "./page-C_UpHKFE.js";
|
|
|
7
7
|
import { t as VerificationResult } from "./verificationResult-Dmhbihmv.js";
|
|
8
8
|
import { t as PasswordInputComposed } from "./passwordInputComposed-CJyl2NVg.js";
|
|
9
9
|
import { n as translateError, t as FormField } from "./formField-DpAYxeQG.js";
|
|
10
|
-
import { t as PhoneInputComposed } from "./phoneInputComposed-
|
|
10
|
+
import { t as PhoneInputComposed } from "./phoneInputComposed-Dfcs9ZZZ.js";
|
|
11
11
|
import { t as DropdownComposed } from "./dropdownComposed-kRViL6gh.js";
|
|
12
12
|
import { t as DateInputComposed } from "./dateInputComposed-w4j9RRsy.js";
|
|
13
13
|
import { t as RadioGroupComposed } from "./radioGroupComposed-yD-8Wwfy.js";
|
package/dist/extensibility.es.js
CHANGED
|
@@ -19,14 +19,14 @@ import { t as PasswordInputComposed } from "./passwordInputComposed-CJyl2NVg.js"
|
|
|
19
19
|
import { t as OtpInput } from "./otpInput-BEFA6mXF.js";
|
|
20
20
|
import { t as Checkbox } from "./checkbox-DNLQdD-t.js";
|
|
21
21
|
import { t as FormField } from "./formField-DpAYxeQG.js";
|
|
22
|
-
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-
|
|
22
|
+
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-Dfcs9ZZZ.js";
|
|
23
23
|
import { t as DropdownComposed } from "./dropdownComposed-kRViL6gh.js";
|
|
24
24
|
import "./dropdownComposed-C3LsQJYO.js";
|
|
25
25
|
import { t as DateInputComposed } from "./dateInputComposed-w4j9RRsy.js";
|
|
26
26
|
import "./dateInputComposed-Bv48QGtW.js";
|
|
27
27
|
import { n as RadioButtonComposed, t as RadioGroupComposed } from "./radioGroupComposed-yD-8Wwfy.js";
|
|
28
28
|
import "./radioGroupComposed-D1CUskMJ.js";
|
|
29
|
-
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-
|
|
29
|
+
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-DVTFT-BK.js";
|
|
30
30
|
import { t as BottomSheet } from "./bottomSheet-CAwHMdzc.js";
|
|
31
31
|
import { n as CameraFrame, t as CameraView } from "./cameraView-B6qPAP9P.js";
|
|
32
32
|
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-BnnexMYK.js";
|
|
@@ -12,7 +12,7 @@ import { n as CameraFrame, t as CameraView } from "./cameraView-B6qPAP9P.js";
|
|
|
12
12
|
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-BnnexMYK.js";
|
|
13
13
|
import { t as BaseTutorial } from "./baseTutorial-BHryBUio.js";
|
|
14
14
|
import { n as RedStrikeIcon, t as ExpiredId } from "./expiredId-BXIW1Oix.js";
|
|
15
|
-
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-
|
|
15
|
+
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-DS33VRIP.js";
|
|
16
16
|
import { i as usePreloadCaptureAnimations, n as CaptureNotification } from "./manualCaptureButton-B-BAsXJB.js";
|
|
17
17
|
import { eventModuleNames, recordExperimentAssignmentOnce } from "@incodetech/core/events";
|
|
18
18
|
import { ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, numberParam, resolveExperiment } from "@incodetech/core/feature-management";
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { a as ResolvedConfigProvider, b as useManager, c as TransitionSpinner, s
|
|
|
4
4
|
import { b as ErrorIcon } from "../icons-_6VTEfit.js";
|
|
5
5
|
import { t as StatusPage } from "../statusPage-CbGrKjvy.js";
|
|
6
6
|
import { t as registerIncodeModuleElement } from "../incodeModule-cyY6mFRn.js";
|
|
7
|
-
import { a as LAZY_UI_MODULES, c as initializeFlowManager, f as warmupWasmIfNeeded, i as HEADLESS_FLOW_MODULE_KEYS, l as preloadFirstModule, m as resolveSessionLanguage, n as extractIncodeStatus, o as createFlowManager, r as UnsupportedModule, s as fetchTheme, t as resolveApiKey, u as preloadHomeScreen } from "../resolveApiKey-
|
|
7
|
+
import { a as LAZY_UI_MODULES, c as initializeFlowManager, f as warmupWasmIfNeeded, i as HEADLESS_FLOW_MODULE_KEYS, l as preloadFirstModule, m as resolveSessionLanguage, n as extractIncodeStatus, o as createFlowManager, r as UnsupportedModule, s as fetchTheme, t as resolveApiKey, u as preloadHomeScreen } from "../resolveApiKey-Bu5vntnL.js";
|
|
8
8
|
import { i as usePrefetchNextModule, n as useModuleLoader, r as useModulePreloader } from "../useModuleLoader-Byr5mQQz.js";
|
|
9
9
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
10
10
|
import { getNextRequiredWasmPipelines } from "@incodetech/core/flow";
|
package/dist/id/id.es.js
CHANGED
|
@@ -10,7 +10,7 @@ import { t as AutoFocusTitle } from "../autoFocusTitle-CvIX4-a7.js";
|
|
|
10
10
|
import { t as Processing } from "../processing-DZDmNtKM.js";
|
|
11
11
|
import { t as VerificationResult } from "../verificationResult-Dmhbihmv.js";
|
|
12
12
|
import { n as CaptureFooter, r as ProgressBar } from "../useCaptureHelpButton-Ggms_JQR.js";
|
|
13
|
-
import { _ as ID_CAPTURE_LOADING_PHASE, a as CaptureAutoFocusProvider, c as IdExpired, d as CaptureFrame, f as useIdExperiment, g as EXPERIMENT_LIFECYCLE_STATUS, h as CONTINUING_TUTORIAL_PHASES, i as Capture, l as IdError, m as CAMERA_WARMUP_LOADING_PHASES, n as Chooser, o as getCaptureFrameTitle, p as CAMERA_PERMISSION_UX, r as Tutorial, s as IdNoAttempts, t as FlipAnimation, u as canFlipCapturedCard, v as ID_CAPTURE_STATUS, y as PERMISSION_DIALOG_STATUS } from "../flipAnimation-
|
|
13
|
+
import { _ as ID_CAPTURE_LOADING_PHASE, a as CaptureAutoFocusProvider, c as IdExpired, d as CaptureFrame, f as useIdExperiment, g as EXPERIMENT_LIFECYCLE_STATUS, h as CONTINUING_TUTORIAL_PHASES, i as Capture, l as IdError, m as CAMERA_WARMUP_LOADING_PHASES, n as Chooser, o as getCaptureFrameTitle, p as CAMERA_PERMISSION_UX, r as Tutorial, s as IdNoAttempts, t as FlipAnimation, u as canFlipCapturedCard, v as ID_CAPTURE_STATUS, y as PERMISSION_DIALOG_STATUS } from "../flipAnimation-DVTFT-BK.js";
|
|
14
14
|
import { t as BottomSheet } from "../bottomSheet-CAwHMdzc.js";
|
|
15
15
|
import { n as CameraFrame, t as CameraView } from "../cameraView-B6qPAP9P.js";
|
|
16
16
|
import { n as CameraOverlay, t as CameraOverlayHeader } from "../cameraOverlayHeader-BnnexMYK.js";
|
|
@@ -6,7 +6,7 @@ import { x as Button } from "../icons-_6VTEfit.js";
|
|
|
6
6
|
import { t as Page } from "../page-C_UpHKFE.js";
|
|
7
7
|
import { t as AutoFocusTitle } from "../autoFocusTitle-CvIX4-a7.js";
|
|
8
8
|
import { t as BottomSheet } from "../bottomSheet-CAwHMdzc.js";
|
|
9
|
-
import { t as countryFlagEmoji } from "../countryFlag-
|
|
9
|
+
import { t as countryFlagEmoji } from "../countryFlag-DS33VRIP.js";
|
|
10
10
|
import { t as registerIncodeModuleElement } from "../incodeModule-cyY6mFRn.js";
|
|
11
11
|
import { t as INCODE_PRIVACY_POLICY_URL } from "../policyUrls-Dslljmyd.js";
|
|
12
12
|
import { SCAN_NEW_DOCUMENT, createIdentityReuseManager } from "@incodetech/core/identity-reuse";
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import { x as Button } from "../icons-_6VTEfit.js";
|
|
|
6
6
|
import { t as Page } from "../page-C_UpHKFE.js";
|
|
7
7
|
import { t as OtpInput } from "../otpInput-BEFA6mXF.js";
|
|
8
8
|
import { t as Checkbox } from "../checkbox-DNLQdD-t.js";
|
|
9
|
-
import { t as PhoneInputComposed } from "../phoneInputComposed-
|
|
9
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-Dfcs9ZZZ.js";
|
|
10
10
|
import { t as registerIncodeModuleElement } from "../incodeModule-cyY6mFRn.js";
|
|
11
11
|
import { createPhoneManager } from "@incodetech/core/phone";
|
|
12
12
|
//#region src/modules/phone/phone.tsx
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { S as k, _ as y, c as A, f as d, h as q, i as D, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
+
import { b as ErrorIcon, r as SuccessIcon } from "./icons-_6VTEfit.js";
|
|
3
|
+
import { t as InputComposed } from "./inputComposed-DzKSsmPB.js";
|
|
4
|
+
import { t as FieldLabelHint } from "./fieldLabelHint-DX9HLqgU.js";
|
|
5
|
+
import { t as countryDefinitions } from "./countryDefinitions-CNBB-gAl.js";
|
|
6
|
+
import { t as DropdownComposed } from "./dropdownComposed-kRViL6gh.js";
|
|
7
|
+
import { formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, isValidPhoneNumber, parsePhoneNumber } from "@incodetech/core/phone-number";
|
|
8
|
+
//#region src/shared/countries/countries.ts
|
|
9
|
+
var countries = Object.entries(countryDefinitions).map(([code, data]) => ({
|
|
10
|
+
code,
|
|
11
|
+
alpha3: data.alpha3,
|
|
12
|
+
emoji: data.emoji,
|
|
13
|
+
name: data.name,
|
|
14
|
+
callingCode: getCallingCode(code)
|
|
15
|
+
})).filter((c) => c.callingCode !== "").sort((a, b) => a.name.localeCompare(b.name));
|
|
16
|
+
function getCountryByCode(code) {
|
|
17
|
+
if (!code) return void 0;
|
|
18
|
+
return countries.find((c) => c.code === code || c.code === code.toUpperCase());
|
|
19
|
+
}
|
|
20
|
+
function getCountryByCallingCode(callingCode) {
|
|
21
|
+
const normalized = callingCode.startsWith("+") ? callingCode : `+${callingCode}`;
|
|
22
|
+
return countries.find((c) => c.callingCode === normalized);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/shared/phoneInputComposed/phoneInputComposed.tsx
|
|
26
|
+
var HARDCODED_PLACEHOLDERS = {
|
|
27
|
+
US: "(123) 456-7890",
|
|
28
|
+
CA: "(123) 456-7890"
|
|
29
|
+
};
|
|
30
|
+
function getPhonePlaceholder(code) {
|
|
31
|
+
return HARDCODED_PLACEHOLDERS[code] || formatExamplePhoneNumber(code);
|
|
32
|
+
}
|
|
33
|
+
var PhoneInputComposed = D(({ id, label, labelHint, countryCode = "US", value, placeholder, error, showFormatHintInError = false, helper, showErrorIcon, showHelperIcon, disabled = false, disableCountrySelector = false, required, onChange, formatHintBuilder, countryAriaLabelBuilder, "aria-labelledby": ariaLabelledBy, "data-testid": dataTestId, ...restProps }, ref) => {
|
|
34
|
+
const [selectedCountryCode, setSelectedCountryCode] = d(countryCode);
|
|
35
|
+
const [localPhone, setLocalPhone] = d("");
|
|
36
|
+
const initialised = A(false);
|
|
37
|
+
const dropdownOptions = T(() => countries.map((c) => ({
|
|
38
|
+
value: c.code,
|
|
39
|
+
label: `${c.emoji} ${c.callingCode} ${c.name}`,
|
|
40
|
+
ariaLabel: `${c.callingCode} ${c.name}`
|
|
41
|
+
})), []);
|
|
42
|
+
const selectedCountry = T(() => getCountryByCode(selectedCountryCode) ?? getCountryByCode("US"), [selectedCountryCode]);
|
|
43
|
+
const effectivePlaceholder = T(() => placeholder ?? getPhonePlaceholder(selectedCountryCode), [placeholder, selectedCountryCode]);
|
|
44
|
+
const formatHintId = `${id}-phone-format-hint`;
|
|
45
|
+
const formatHintText = T(() => formatHintBuilder?.(effectivePlaceholder), [formatHintBuilder, effectivePlaceholder]);
|
|
46
|
+
const formatHintTextForSr = T(() => formatHintText?.replace(/\d/g, "$& ").trim(), [formatHintText]);
|
|
47
|
+
const showStandaloneFormatHint = !error && !!formatHintText;
|
|
48
|
+
const showErrorFormatHint = showFormatHintInError && !!error && !!formatHintText;
|
|
49
|
+
y(() => {
|
|
50
|
+
if (initialised.current || !value || !selectedCountry) return;
|
|
51
|
+
initialised.current = true;
|
|
52
|
+
const parsed = parsePhoneNumber(value.startsWith("+") ? value : `+${value}`);
|
|
53
|
+
if (parsed) {
|
|
54
|
+
if (parsed.country !== selectedCountryCode) setSelectedCountryCode(parsed.country);
|
|
55
|
+
setLocalPhone(parsed.national);
|
|
56
|
+
}
|
|
57
|
+
}, [
|
|
58
|
+
value,
|
|
59
|
+
selectedCountry,
|
|
60
|
+
selectedCountryCode
|
|
61
|
+
]);
|
|
62
|
+
const validateAndNotify = q((rawDigits, country) => {
|
|
63
|
+
const digits = rawDigits.replace(/\D/g, "");
|
|
64
|
+
const full = digits ? `${country.callingCode}${digits}` : "";
|
|
65
|
+
onChange?.(full, isValidPhoneNumber(full, country.code));
|
|
66
|
+
}, [onChange]);
|
|
67
|
+
const handleCountryChange = q((newCode) => {
|
|
68
|
+
setSelectedCountryCode(newCode);
|
|
69
|
+
const country = getCountryByCode(newCode);
|
|
70
|
+
if (country && localPhone) validateAndNotify(localPhone, country);
|
|
71
|
+
}, [localPhone, validateAndNotify]);
|
|
72
|
+
const handlePhoneInput = q((e) => {
|
|
73
|
+
const raw = e.target.value;
|
|
74
|
+
if (!selectedCountry) {
|
|
75
|
+
setLocalPhone(raw);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
setLocalPhone(formatPhoneAsYouType(raw, selectedCountry.code));
|
|
79
|
+
validateAndNotify(raw, selectedCountry);
|
|
80
|
+
}, [selectedCountry, validateAndNotify]);
|
|
81
|
+
const countryDropdownId = `${id}-country`;
|
|
82
|
+
const phoneInputId = `${id}-phone`;
|
|
83
|
+
const helperId = `${phoneInputId}-helper`;
|
|
84
|
+
const errorId = `${phoneInputId}-error`;
|
|
85
|
+
const describedByIds = [
|
|
86
|
+
showStandaloneFormatHint ? formatHintId : null,
|
|
87
|
+
helper ? helperId : null,
|
|
88
|
+
error ? errorId : null
|
|
89
|
+
].filter(Boolean).join(" ");
|
|
90
|
+
return /* @__PURE__ */ u("div", {
|
|
91
|
+
class: "IncodePhoneInputComposed",
|
|
92
|
+
children: [
|
|
93
|
+
label && /* @__PURE__ */ u("label", {
|
|
94
|
+
class: "IncodePhoneInputComposedLabel",
|
|
95
|
+
htmlFor: phoneInputId,
|
|
96
|
+
"data-testid": `${id}-label`,
|
|
97
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
98
|
+
className: "IncodePhoneInputComposedLabelHint",
|
|
99
|
+
hint: labelHint,
|
|
100
|
+
required,
|
|
101
|
+
testId: `${id}-label-hint`
|
|
102
|
+
})]
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ u(DropdownComposed, {
|
|
105
|
+
id: countryDropdownId,
|
|
106
|
+
options: dropdownOptions,
|
|
107
|
+
value: selectedCountryCode,
|
|
108
|
+
onChange: handleCountryChange,
|
|
109
|
+
disabled: disabled || disableCountrySelector,
|
|
110
|
+
required,
|
|
111
|
+
searchable: true,
|
|
112
|
+
searchPlaceholder: "Search countries...",
|
|
113
|
+
suppressMessages: true,
|
|
114
|
+
"aria-label": countryAriaLabelBuilder?.({
|
|
115
|
+
callingCode: selectedCountry.callingCode,
|
|
116
|
+
countryName: selectedCountry.name
|
|
117
|
+
}) ?? `Country code ${selectedCountry.callingCode}, ${selectedCountry.name}`,
|
|
118
|
+
renderSelectedLabel: (option) => {
|
|
119
|
+
const c = getCountryByCode(option.value);
|
|
120
|
+
return c ? `${c.emoji} ${c.callingCode}` : option.label;
|
|
121
|
+
},
|
|
122
|
+
"data-testid": `${countryDropdownId}-selector`,
|
|
123
|
+
class: "IncodePhoneInputComposedDropdown",
|
|
124
|
+
siblingElement: /* @__PURE__ */ u(InputComposed, {
|
|
125
|
+
id: phoneInputId,
|
|
126
|
+
ref,
|
|
127
|
+
type: "tel",
|
|
128
|
+
value: localPhone,
|
|
129
|
+
onInput: handlePhoneInput,
|
|
130
|
+
placeholder: effectivePlaceholder,
|
|
131
|
+
error,
|
|
132
|
+
disabled,
|
|
133
|
+
required,
|
|
134
|
+
suppressMessages: true,
|
|
135
|
+
"aria-label": !label ? "Phone number" : void 0,
|
|
136
|
+
"aria-labelledby": ariaLabelledBy,
|
|
137
|
+
"aria-describedby": describedByIds || void 0,
|
|
138
|
+
"aria-invalid": error ? "true" : void 0,
|
|
139
|
+
"data-testid": dataTestId,
|
|
140
|
+
...restProps
|
|
141
|
+
})
|
|
142
|
+
}),
|
|
143
|
+
showStandaloneFormatHint && /* @__PURE__ */ u("span", {
|
|
144
|
+
id: formatHintId,
|
|
145
|
+
class: "IncodeSrOnly",
|
|
146
|
+
"data-testid": `${id}-format-hint`,
|
|
147
|
+
children: formatHintTextForSr
|
|
148
|
+
}),
|
|
149
|
+
error && /* @__PURE__ */ u("div", {
|
|
150
|
+
class: "IncodePhoneInputComposedErrorWrapper",
|
|
151
|
+
role: "alert",
|
|
152
|
+
"data-testid": `${id}-error-wrapper`,
|
|
153
|
+
children: [showErrorIcon && /* @__PURE__ */ u("div", {
|
|
154
|
+
class: "IncodePhoneInputComposedIconWrapper",
|
|
155
|
+
children: /* @__PURE__ */ u(ErrorIcon, { size: 16 })
|
|
156
|
+
}), /* @__PURE__ */ u("p", {
|
|
157
|
+
id: errorId,
|
|
158
|
+
class: "IncodePhoneInputComposedError",
|
|
159
|
+
children: [error, showErrorFormatHint && /* @__PURE__ */ u(k, { children: [
|
|
160
|
+
" ",
|
|
161
|
+
/* @__PURE__ */ u("span", {
|
|
162
|
+
"aria-hidden": "true",
|
|
163
|
+
children: formatHintText
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ u("span", {
|
|
166
|
+
class: "IncodeSrOnly",
|
|
167
|
+
children: formatHintTextForSr
|
|
168
|
+
})
|
|
169
|
+
] })]
|
|
170
|
+
})]
|
|
171
|
+
}),
|
|
172
|
+
helper && !error && /* @__PURE__ */ u("div", {
|
|
173
|
+
class: "IncodePhoneInputComposedHelperWrapper",
|
|
174
|
+
"data-testid": `${id}-helper-wrapper`,
|
|
175
|
+
children: [showHelperIcon && /* @__PURE__ */ u("div", {
|
|
176
|
+
class: "IncodePhoneInputComposedIconWrapper",
|
|
177
|
+
children: /* @__PURE__ */ u(SuccessIcon, { size: 16 })
|
|
178
|
+
}), /* @__PURE__ */ u("p", {
|
|
179
|
+
id: helperId,
|
|
180
|
+
class: "IncodePhoneInputComposedHelper",
|
|
181
|
+
children: helper
|
|
182
|
+
})]
|
|
183
|
+
})
|
|
184
|
+
]
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
PhoneInputComposed.displayName = "PhoneInputComposed";
|
|
188
|
+
//#endregion
|
|
189
|
+
export { getCountryByCode as i, countries as n, getCountryByCallingCode as r, PhoneInputComposed as t };
|
|
@@ -2633,7 +2633,7 @@ var QrTabContent = ({ redirectUrl, onQrReady }) => {
|
|
|
2633
2633
|
};
|
|
2634
2634
|
//#endregion
|
|
2635
2635
|
//#region src/modules/redirect-to-mobile/qrScreen.tsx
|
|
2636
|
-
var loadSmsTabContent = () => import("../smsTabContent-
|
|
2636
|
+
var loadSmsTabContent = () => import("../smsTabContent-BarTuY2J.js").then((module) => module.SmsTabContent);
|
|
2637
2637
|
var LazySmsTabContent = (props) => {
|
|
2638
2638
|
const { t } = useTranslation();
|
|
2639
2639
|
const state = useLazyComponentLoader({ loader: loadSmsTabContent });
|
|
@@ -102,8 +102,8 @@ var LAZY_UI_MODULES = {
|
|
|
102
102
|
GOVT_VALIDATION_PROVISIONING: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
|
|
103
103
|
INE_VALIDATION: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
|
|
104
104
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((m) => m.Geolocation),
|
|
105
|
-
EXTERNAL_VERIFICATION: () => import("./ekycModule-
|
|
106
|
-
EKYB: () => import("./ekybModule-
|
|
105
|
+
EXTERNAL_VERIFICATION: () => import("./ekycModule-Dk0PUTOR.js").then((m) => m.EkycModule),
|
|
106
|
+
EKYB: () => import("./ekybModule-Nso6AY_7.js").then((m) => m.EkybModule),
|
|
107
107
|
DOCUMENT_CAPTURE: () => import("./documentCapture-Bw6o3N5U.js").then((m) => m.DocumentCapture),
|
|
108
108
|
ADDRESS: () => import("./documentCapture-Bw6o3N5U.js").then((m) => m.DocumentCapture),
|
|
109
109
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((m) => m.Consent),
|
|
@@ -114,7 +114,7 @@ var LAZY_UI_MODULES = {
|
|
|
114
114
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
|
|
115
115
|
CUSTOM_FIELDS: () => import("./customFields-CqdqHbRu.js").then((m) => m.CustomFields),
|
|
116
116
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((m) => m.Watchlist),
|
|
117
|
-
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-
|
|
117
|
+
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-Cmu1ccIm.js").then((m) => m.WatchlistForBusiness),
|
|
118
118
|
INCODE_WATCHLIST: () => import("./customWatchlist-BCUtuEAS.js").then((m) => m.CustomWatchlist),
|
|
119
119
|
AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((m) => m.AeSignature),
|
|
120
120
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((m) => m.QeSignature),
|
|
@@ -4,7 +4,7 @@ import { t as Spacer } from "./spacer-BfI-BpuX.js";
|
|
|
4
4
|
import { b as ErrorIcon, r as SuccessIcon, x as Button } from "./icons-_6VTEfit.js";
|
|
5
5
|
import { t as AutoFocusTitle } from "./autoFocusTitle-CvIX4-a7.js";
|
|
6
6
|
import { n as useResendTimerAnnouncements, t as formatResendTimer } from "./resendTimer-CTZVop2g.js";
|
|
7
|
-
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-
|
|
7
|
+
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-Dfcs9ZZZ.js";
|
|
8
8
|
//#region src/modules/redirect-to-mobile/smsSentView.tsx
|
|
9
9
|
var SmsSentView = ({ formattedPhone, hasError, resendTimer, canResendSms, onResend, onChangePhone }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentChildren } from 'preact';
|
|
2
|
+
import { CountryCode } from '@incodetech/core/phone-number';
|
|
2
3
|
import { CSSProperties } from 'preact';
|
|
3
4
|
import { FC } from 'preact/compat';
|
|
4
5
|
import { FunctionalComponent } from 'preact';
|
|
@@ -376,8 +377,6 @@ declare type ConnectionErrorProps = {
|
|
|
376
377
|
|
|
377
378
|
export declare const countries: CountryData[];
|
|
378
379
|
|
|
379
|
-
declare type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
|
|
380
|
-
|
|
381
380
|
declare type CountryData = {
|
|
382
381
|
code: CountryCode;
|
|
383
382
|
/** ISO 3166-1 alpha-3 code, for backends that report alpha-3 (e.g. MRZ). */
|
|
@@ -7,7 +7,7 @@ import { t as Page } from "./page-C_UpHKFE.js";
|
|
|
7
7
|
import { t as StatusPage } from "./statusPage-CbGrKjvy.js";
|
|
8
8
|
import { t as InputComposed } from "./inputComposed-DzKSsmPB.js";
|
|
9
9
|
import { t as registerIncodeModuleElement } from "./incodeModule-cyY6mFRn.js";
|
|
10
|
-
import { t as CountrySelector } from "./countrySelector-
|
|
10
|
+
import { t as CountrySelector } from "./countrySelector-BpUlsiLE.js";
|
|
11
11
|
import { createWatchlistForBusinessManager } from "@incodetech/core/watchlist-for-business";
|
|
12
12
|
//#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
|
|
13
13
|
var WatchlistForBusinessContent = ({ manager: externalManager, onFinish }) => {
|
|
@@ -5,7 +5,7 @@ import { a as ResolvedConfigProvider, b as useManager, c as TransitionSpinner, s
|
|
|
5
5
|
import { t as Page } from "../page-C_UpHKFE.js";
|
|
6
6
|
import { t as AutoFocusTitle } from "../autoFocusTitle-CvIX4-a7.js";
|
|
7
7
|
import { t as registerIncodeModuleElement } from "../incodeModule-cyY6mFRn.js";
|
|
8
|
-
import { a as LAZY_UI_MODULES, d as setupSDK, m as resolveSessionLanguage, n as extractIncodeStatus, p as isDesktopOrEmulated, r as UnsupportedModule, t as resolveApiKey } from "../resolveApiKey-
|
|
8
|
+
import { a as LAZY_UI_MODULES, d as setupSDK, m as resolveSessionLanguage, n as extractIncodeStatus, p as isDesktopOrEmulated, r as UnsupportedModule, t as resolveApiKey } from "../resolveApiKey-Bu5vntnL.js";
|
|
9
9
|
import { a as HEADLESS_WORKFLOW_MODULE_KEYS, n as useModuleLoader } from "../useModuleLoader-Byr5mQQz.js";
|
|
10
10
|
import { resolveWasmConfigForPipelines, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
11
11
|
import { bootstrapSession, getFinishStatus, refreshQrUrlUuid } from "@incodetech/core/session";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260930-
|
|
3
|
+
"version": "0.0.0-dev-20260930-d4ff5ab8",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
],
|
|
288
288
|
"dependencies": {
|
|
289
289
|
"preact": "^10.27.2",
|
|
290
|
-
"@incodetech/core": "0.0.0-dev-20260930-
|
|
290
|
+
"@incodetech/core": "0.0.0-dev-20260930-d4ff5ab8"
|
|
291
291
|
},
|
|
292
292
|
"devDependencies": {
|
|
293
293
|
"@fontsource/dm-sans": "^5.2.8",
|
|
@@ -315,7 +315,6 @@
|
|
|
315
315
|
"i18next": "^25.7.1",
|
|
316
316
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
317
317
|
"i18next-http-backend": "^3.0.2",
|
|
318
|
-
"libphonenumber-js": "^1.11.0",
|
|
319
318
|
"lightningcss": "^1.32.0",
|
|
320
319
|
"lottie-web": "5.13.0",
|
|
321
320
|
"marked": "^17.0.5",
|