@incodetech/core 0.0.0-dev-20261124-bcd99b1e → 0.0.0-dev-20261124-0603c78a
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/{FaceDetectionProvider-D4ncumfe.esm.js → FaceDetectionProvider-DxiIXYhn.esm.js} +4 -4
- package/dist/{definitionSource-B-Z2EgJJ.esm.js → addressSearch-DKdOJ_e-.esm.js} +67 -8
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{phoneFormat-C3q0Ukh4.esm.js → allowedCharacters-Bnir--CN.esm.js} +1 -11
- package/dist/{apiError-a7tezk_O.esm.js → apiError-CqREkn-Z.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Cp64l__H.d.ts → authenticationManager-BManpfgb.d.ts} +1 -1
- package/dist/{authenticationManager-IpVKgxPn.esm.js → authenticationManager-BsdNQhnJ.esm.js} +3 -3
- package/dist/{authenticationStateMachine-B4CuMBgC.esm.js → authenticationStateMachine-BuFAaMrp.esm.js} +3 -3
- package/dist/{calendarDate-DcqGuEht.esm.js → calendarDate-D2zWfUlA.esm.js} +1 -1
- package/dist/{cnpj-Bl_olpdX.esm.js → cnpj-CVq3vL39.esm.js} +1 -9
- package/dist/cnpj-D5cxwIe-.esm.js +9 -0
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DlvhoJYc.d.ts → consentManager-B0YKqYtZ.d.ts} +1 -1
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-C6WmQToS.esm.js → curpValidationManager-4v5qMUXm.esm.js} +1 -1
- package/dist/{curpValidationManager-Dynwqu2z.d.ts → curpValidationManager-9U7zMZt8.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-BbJ4YAzE.esm.js → curpValidationStateMachine-BPkEZtmd.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/{customFieldsManager-BBy6X9nh.esm.js → customFieldsManager-BX3u8VPe.esm.js} +1 -1
- package/dist/{deepsightCaptureConfig-D0PCzVcM.esm.js → deepsightCaptureConfig-cZcB69u8.esm.js} +2 -2
- package/dist/{deepsightLoader-nbl5Dhvf.esm.js → deepsightLoader-Cgb2o9mm.esm.js} +4 -4
- package/dist/definitionSource-C_pmsYIx.esm.js +12 -0
- package/dist/{desktopCameraElection-C2jhy2Fd.esm.js → desktopCameraElection-qohTs4WJ.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-DOgJTJ4F.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +4 -4
- package/dist/{documentSignatureStateMachine-DoeIrTmr.esm.js → documentSignatureStateMachine-CKiwEPW-.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-D_QpTKfT.esm.js → dynamicFormsManager-DFdQrll7.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-D_KmQwDZ.esm.js → dynamicFormsStateMachine-luLe6C_0.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BG7eju18.esm.js → ekybManager-6Z1l1gNi.esm.js} +1 -1
- package/dist/{ekybManager-BflWuTe4.d.ts → ekybManager-DZdSXQMK.d.ts} +2 -2
- package/dist/{ekybStateMachine-Bc-m_PHQ.esm.js → ekybStateMachine-BxRrq-KS.esm.js} +5 -4
- package/dist/ekyc-prefill.d.ts +3 -4
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-BPUHoUHy.esm.js → ekycManager-CDxoP5gL.esm.js} +1 -1
- package/dist/{ekycManager-BldDiWTJ.d.ts → ekycManager-DusmB-4j.d.ts} +2 -2
- package/dist/{ekycPrefillManager-BaX95xIW.esm.js → ekycPrefillManager-BZLno7cn.esm.js} +6 -7
- package/dist/{ekycPrefillManager-qgG_uUKA.d.ts → ekycPrefillManager-BwmPXfhY.d.ts} +17 -17
- package/dist/{ekycPrefillStateMachine-C8FEAHbH.esm.js → ekycPrefillStateMachine-CWrth_EQ.esm.js} +567 -165
- package/dist/{ekycStateMachine-Cq94FpIm.esm.js → ekycStateMachine-CM1YRW27.esm.js} +483 -155
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-bgoE6nL8.esm.js → electronicSignatureManager-HSrt645G.esm.js} +1 -1
- package/dist/extensibility.d.ts +16 -16
- package/dist/extensibility.esm.js +17 -17
- package/dist/{faceCaptureManagerFactory-DvH9-zIi.esm.js → faceCaptureManagerFactory-CZ7QY5-7.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-BZ2XHhkj.d.ts → faceCaptureManagerFactory-Dm7p3T_t.d.ts} +3 -3
- package/dist/{faceCaptureSetup-DuFiwK9F.esm.js → faceCaptureSetup-DVc5TRYa.esm.js} +7 -7
- package/dist/{feature-management-DiL2uBlX.esm.js → feature-management-B9UE3gHm.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +7 -7
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Bs4oWd_W.esm.js → flowCompletionService-Dwuygl7l.esm.js} +1 -1
- package/dist/{flowServices-KLGZ3eWm.esm.js → flowServices-Be3Kldxe.esm.js} +4 -4
- package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-el4FUmYy.esm.js → geolocationManager-C2cuVhOr.esm.js} +1 -1
- package/dist/{geolocationManager-Del2ddmt.d.ts → geolocationManager-CENrvxpK.d.ts} +1 -1
- package/dist/{geolocationStateMachine-BnM-qTe3.esm.js → geolocationStateMachine-Ckkv4Rjy.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-UnWwLa3I.esm.js → idCaptureManager-DSzyy8sH.esm.js} +4 -4
- package/dist/{idCaptureManager-Co4ZZ-pd.d.ts → idCaptureManager-jjNknNiP.d.ts} +2 -2
- package/dist/{idCaptureServices-DFUdwccM.esm.js → idCaptureServices-Cn6MgUMJ.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-DGWGB0Tz.esm.js → idCaptureStateMachine-Djftqyvq.esm.js} +11 -11
- package/dist/{idOcrManager-C3BHGgSb.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/{idOcrManager-XTbpfHoF.esm.js → idOcrManager-Dl9eNhT8.esm.js} +1 -1
- package/dist/{idOcrStateMachine-B-00PgPh.esm.js → idOcrStateMachine-CEkUWxGy.esm.js} +1 -1
- package/dist/{index-RghgiJVx.d.ts → index-B-K_tV2Q.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.d.ts +3 -3
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-B7Di9auB.d.ts → kybChecksManager-CKDy1mel.d.ts} +1 -1
- package/dist/{kybChecksManager-CbkCctw0.esm.js → kybChecksManager-CkV8KV8s.esm.js} +2 -2
- package/dist/{kybChecksStateMachine-BeB_cgk4.esm.js → kybChecksStateMachine-bx-cKaYd.esm.js} +175 -178
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-B_eFZmo-.d.ts → mandatoryConsentManager-CrxYmUeb.d.ts} +2 -2
- package/dist/numericRange-zDZFvRb8.esm.js +274 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-PUU8CObN.esm.js → recordingService-BoqQG-ky.esm.js} +1 -1
- package/dist/{runChildModule-BOvtfM8r.esm.js → runChildModule-ZQk6DijJ.esm.js} +1 -1
- package/dist/{sdkVersion-thMGaHAC.esm.js → sdkVersion-DH8Ce9ia.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-CqudCvHN.esm.js → selfieErrorUtils-BSf9Wkjv.esm.js} +1 -1
- package/dist/{selfieManager-CKm034l4.d.ts → selfieManager-DOwu6Ukf.d.ts} +1 -1
- package/dist/{selfieManager-DWRVOhOE.esm.js → selfieManager-nUSTNiGf.esm.js} +3 -3
- package/dist/{selfieStateMachine-CNELgWFK.esm.js → selfieStateMachine-BvjutqDo.esm.js} +3 -3
- package/dist/{session-pNSU6n3-.esm.js → session-e7CKEbzI.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BzvYgZCQ.esm.js → sessionInitializer-DIvmVdz7.esm.js} +4 -4
- package/dist/{setup-BQVlJnC0.esm.js → setup-cDH9tRA_.esm.js} +5 -5
- package/dist/trueSight-D4lGrWie.esm.js +1 -0
- package/dist/{trueSightService-DjwNQ37t.esm.js → trueSightService-BALqKKZM.esm.js} +1 -1
- package/dist/types-BTJWXYHA.d.ts +6 -0
- package/dist/{types-BgRHw-dR.d.ts → types-BaA0Qscz.d.ts} +1 -1
- package/dist/{types-_rJ2GjgK.d.ts → types-BqDc7tER.d.ts} +1 -1
- package/dist/{types-DFgJ26nw.d.ts → types-CH9u9ikn.d.ts} +1 -1
- package/dist/{types-Dy4XI7jR.d.ts → types-CRzImo5V.d.ts} +1 -1
- package/dist/{types-BiUMy0Vp.d.ts → types-CoXJsu1W.d.ts} +1 -1
- package/dist/{textRules-D4NRinKY.d.ts → types-D6Q1D1kx.d.ts} +1 -9
- package/dist/{types-CTaL0XJz.d.ts → types-DWqO7owj.d.ts} +2 -24
- package/dist/{types-mK4qyHxM.d.ts → types-g3NuVCT9.d.ts} +16 -29
- package/dist/{types-aKXf9SVN.d.ts → types-ia31g4VQ.d.ts} +3 -3
- package/dist/{types-Bdes6iC1.d.ts → types-tOSLpcSa.d.ts} +10 -2
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-M25qqewS.esm.js → videoSelfieCameraWarmer-BxPP8LaD.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-BBXE3DnI.d.ts → videoSelfieStepDetector-Dfj7UUF3.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DxeSH80T.esm.js → watchlistForBusinessManager-CiSWk1Lh.esm.js} +1 -1
- package/dist/{watchlistForBusinessStateMachine-BC9UWLuZ.esm.js → watchlistForBusinessStateMachine-DiQW42sd.esm.js} +3 -2
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +21 -21
- package/package.json +3 -3
- package/dist/addressSearch-BKlynuBr.esm.js +0 -71
- package/dist/ekycRules-B7kUzSgu.esm.js +0 -598
- package/dist/trueSight-CiveOb7r.esm.js +0 -1
- package/dist/types-J7D0pbWH.d.ts +0 -6
package/dist/{FaceDetectionProvider-D4ncumfe.esm.js → FaceDetectionProvider-DxiIXYhn.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l as wasmRuntime } from "./warmup-O3rAoe1-.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-cDH9tRA_.esm.js";
|
|
3
3
|
import { r as BaseWasmProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
4
4
|
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./trueSight-
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-BALqKKZM.esm.js";
|
|
6
|
+
import "./trueSight-D4lGrWie.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-CrqhpKkP.esm.js";
|
|
8
8
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
9
9
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
@@ -234,7 +234,7 @@ function startDetection(params) {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
async function initializeDeepsightSession(options) {
|
|
237
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
237
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Cgb2o9mm.esm.js");
|
|
238
238
|
return loadDeepsightSession({
|
|
239
239
|
ds: options.ds,
|
|
240
240
|
storage: options.storage
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
+
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
1
4
|
//#region src/shared/addressSuggestion.ts
|
|
2
5
|
/** Shown when an autocomplete suggestion has no street (city/region-level result). */
|
|
3
6
|
const STREET_LEVEL_REQUIRED_ERROR = { key: "verification.errors.streetLevelRequired" };
|
|
@@ -220,15 +223,71 @@ function formatPostalCode(value, country) {
|
|
|
220
223
|
return value.slice(0, 8);
|
|
221
224
|
}
|
|
222
225
|
//#endregion
|
|
223
|
-
//#region src/internal/
|
|
224
|
-
const queryKey = ({ module, source, country }) => `${module}|${source ?? ""}|${country ?? ""}`;
|
|
226
|
+
//#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
|
|
225
227
|
/**
|
|
226
|
-
* The
|
|
227
|
-
*
|
|
228
|
+
* The rollout switch for form definitions (ENG-59781): one all-or-nothing
|
|
229
|
+
* answer to "do eKYC and eKYB build their forms from catalog definitions, or
|
|
230
|
+
* with today's builders?". The eKYC and eKYB machines read it once, when
|
|
231
|
+
* they're created, and pass the answer to the module adapters
|
|
232
|
+
* (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
|
|
233
|
+
* (`internal/forms`) knows nothing about it.
|
|
234
|
+
*
|
|
235
|
+
* Off by default, so every source and country keeps today's builder. A
|
|
236
|
+
* catalog-only eKYC source, one today's builder never knew, uses its
|
|
237
|
+
* definition either way, since it has no old path to fall back to.
|
|
238
|
+
*
|
|
239
|
+
* This is Incode's rollout decision, not the integrator's: it is not a
|
|
240
|
+
* `setup()` option. It stays a constant: customers move to definitions only
|
|
241
|
+
* once the migration is done, so it is turned on in code at that point.
|
|
228
242
|
*/
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
243
|
+
const ENABLED_BY_DEFAULT = false;
|
|
244
|
+
/** Whether sources and countries with a form definition use it. */
|
|
245
|
+
function isFormDefinitionsEnabled() {
|
|
246
|
+
return ENABLED_BY_DEFAULT;
|
|
232
247
|
}
|
|
233
248
|
//#endregion
|
|
234
|
-
|
|
249
|
+
//#region src/shared/addressSearch.ts
|
|
250
|
+
/** Searches for address suggestions via the address autocomplete API. */
|
|
251
|
+
async function searchAddress(query, signal) {
|
|
252
|
+
return { apiResponse: { items: ((await api.post(endpoints.addressAutocomplete, { search: query }, { signal })).data.apiResponse?.items ?? []).map((item, i) => {
|
|
253
|
+
const addr = item.address ?? item;
|
|
254
|
+
return {
|
|
255
|
+
id: item.id ?? i,
|
|
256
|
+
label: addr.label ?? item.title ?? "",
|
|
257
|
+
street: addr.street,
|
|
258
|
+
city: addr.city,
|
|
259
|
+
stateCode: addr.stateCode ?? addr.state,
|
|
260
|
+
postalCode: addr.postalCode,
|
|
261
|
+
houseNumber: addr.houseNumber,
|
|
262
|
+
countryCode: addr.countryCode
|
|
263
|
+
};
|
|
264
|
+
}) } };
|
|
265
|
+
}
|
|
266
|
+
const DEBOUNCE_MS = 300;
|
|
267
|
+
/**
|
|
268
|
+
* XState callback actor that debounces address search requests.
|
|
269
|
+
* Cancels in-flight HTTP requests when the actor is stopped.
|
|
270
|
+
*/
|
|
271
|
+
const debounceSearchActor = fromCallback(({ input, sendBack }) => {
|
|
272
|
+
const timerProvider = BrowserTimerProvider.getInstance();
|
|
273
|
+
const controller = new AbortController();
|
|
274
|
+
const handle = timerProvider.setTimeout(async () => {
|
|
275
|
+
try {
|
|
276
|
+
sendBack({
|
|
277
|
+
type: "RESULTS",
|
|
278
|
+
suggestions: (await searchAddress(input.query, controller.signal)).apiResponse?.items ?? []
|
|
279
|
+
});
|
|
280
|
+
} catch {
|
|
281
|
+
if (!controller.signal.aborted) sendBack({
|
|
282
|
+
type: "RESULTS",
|
|
283
|
+
suggestions: []
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
}, DEBOUNCE_MS);
|
|
287
|
+
return () => {
|
|
288
|
+
timerProvider.clearTimeout(handle);
|
|
289
|
+
controller.abort();
|
|
290
|
+
};
|
|
291
|
+
});
|
|
292
|
+
//#endregion
|
|
293
|
+
export { getPostalCodeErrorKey as a, validatePostalCode as c, getStreetLevelErrorForSuggestion as d, keepSuggestionInOptions as f, formatPostalCode as i, STREET_LEVEL_REQUIRED_ERROR as l, searchAddress as n, getPostalCodeErrorParams as o, isFormDefinitionsEnabled as r, getPostalCodeMaxLength as s, debounceSearchActor as t, fillFromSuggestion as u };
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-HSrt645G.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
2
1
|
//#region src/internal/forms/checks/allowedCharacters.ts
|
|
3
2
|
const CLASS_PATTERNS = {
|
|
4
3
|
letter: "\\p{L}\\p{M}",
|
|
@@ -15,13 +14,4 @@ function hasAllowedCharacters(value, classes, extra = "", ascii = false) {
|
|
|
15
14
|
return new RegExp(`^[${set}${escapeForClass(extra)}]+$`, "u").test(value);
|
|
16
15
|
}
|
|
17
16
|
//#endregion
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The phone in E.164, or the value as typed when the rules are not loaded
|
|
21
|
-
* (`loadPhoneValidation()`) or the number is not valid.
|
|
22
|
-
*/
|
|
23
|
-
function formatPhoneE164(phone, country) {
|
|
24
|
-
return getPhoneValidation()?.formatE164(phone, country) ?? phone;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { hasAllowedCharacters as n, formatPhoneE164 as t };
|
|
17
|
+
export { hasAllowedCharacters as n, CLASS_PATTERNS as t };
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-Dm7p3T_t.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-BTJWXYHA.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BManpfgb.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BuFAaMrp.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BsdNQhnJ.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-Dm7p3T_t.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
package/dist/{authenticationManager-IpVKgxPn.esm.js → authenticationManager-BsdNQhnJ.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-cDH9tRA_.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
4
4
|
import "./events-ChMS-UzR.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CZ7QY5-7.esm.js";
|
|
7
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BuFAaMrp.esm.js";
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DVc5TRYa.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-DxiIXYhn.esm.js";
|
|
5
|
+
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-qohTs4WJ.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
|
8
8
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -32,4 +32,4 @@ function calendarDateError(value) {
|
|
|
32
32
|
return typeof value === "string" && isCalendarDate(value) ? void 0 : INVALID_DATE_ERROR_KEY;
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
export { calendarDateError as n, INVALID_DATE_ERROR_KEY as t };
|
|
35
|
+
export { calendarDateError as n, isCalendarDate as r, INVALID_DATE_ERROR_KEY as t };
|
|
@@ -68,12 +68,4 @@ function validateCNPJ(cnpjInput) {
|
|
|
68
68
|
return true;
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
|
-
|
|
72
|
-
/** Countries whose tax ID is a CNPJ and must pass {@link validateCNPJ}. */
|
|
73
|
-
const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
|
|
74
|
-
/** Returns true when CNPJ validation applies for the given country. */
|
|
75
|
-
function requiresCnpjValidation(country) {
|
|
76
|
-
return COUNTRIES_WITH_CNPJ_VALIDATION.includes(country);
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
export { requiresCnpjValidation as n, validateCNPJ as r, COUNTRIES_WITH_CNPJ_VALIDATION as t };
|
|
71
|
+
export { validateCNPJ as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/shared/validators/cnpj.ts
|
|
2
|
+
/** Countries whose tax ID is a CNPJ and must pass {@link validateCNPJ}. */
|
|
3
|
+
const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
|
|
4
|
+
/** Returns true when CNPJ validation applies for the given country. */
|
|
5
|
+
function requiresCnpjValidation(country) {
|
|
6
|
+
return COUNTRIES_WITH_CNPJ_VALIDATION.includes(country);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { requiresCnpjValidation as n, COUNTRIES_WITH_CNPJ_VALIDATION as t };
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-B0YKqYtZ.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -102,7 +102,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
102
102
|
}>, {
|
|
103
103
|
type: "canSubmit";
|
|
104
104
|
params: unknown;
|
|
105
|
-
}, never, "error" | "idle" | "finished" | "
|
|
105
|
+
}, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
106
106
|
readonly id: "consent";
|
|
107
107
|
readonly initial: "idle";
|
|
108
108
|
readonly context: ({ input }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
1
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-9U7zMZt8.js";
|
|
2
2
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
3
3
|
type MexicanState = {
|
|
4
4
|
value: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
2
|
-
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-
|
|
1
|
+
import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BPkEZtmd.esm.js";
|
|
2
|
+
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-4v5qMUXm.esm.js";
|
|
3
3
|
export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
|
package/dist/{curpValidationManager-C6WmQToS.esm.js → curpValidationManager-4v5qMUXm.esm.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
-
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
7
|
+
import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-BPkEZtmd.esm.js";
|
|
8
8
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
9
9
|
function createCurpValidationActor(options) {
|
|
10
10
|
return createActor(curpValidationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
+
import { i as FlowModuleConfig } from "./types-ia31g4VQ.js";
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
7
7
|
/** Maximum validation retries before auto-advancing. @default 1 */
|
|
@@ -4,7 +4,7 @@ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { t as carryAttempts } from "./attemptCarry-DWM8lV9V.esm.js";
|
|
6
6
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
-
import { n as calendarDateError } from "./calendarDate-
|
|
7
|
+
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
|
8
8
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
9
9
|
/** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
|
|
10
10
|
function formatDateForApi(date) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-
|
|
1
|
+
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-BX3u8VPe.esm.js";
|
|
2
2
|
export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -5,7 +5,7 @@ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
-
import { n as calendarDateError } from "./calendarDate-
|
|
8
|
+
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
|
9
9
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
10
10
|
//#region src/modules/custom-fields/customFieldsServices.ts
|
|
11
11
|
async function submitCustomFields(params, signal) {
|
package/dist/{deepsightCaptureConfig-D0PCzVcM.esm.js → deepsightCaptureConfig-cZcB69u8.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as trueSightLog, w as utf8ByteLength } from "./trueSightService-
|
|
2
|
-
import "./trueSight-
|
|
1
|
+
import { u as trueSightLog, w as utf8ByteLength } from "./trueSightService-BALqKKZM.esm.js";
|
|
2
|
+
import "./trueSight-D4lGrWie.esm.js";
|
|
3
3
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
4
4
|
//#region src/internal/deepsight/deepsightCaptureConfig.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import "./trueSight-
|
|
5
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, w as SDK_PLATFORM, x as IpifyProvider, y as getThumbmarkId } from "./sessionInitializer-
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-BALqKKZM.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-DH8Ce9ia.esm.js";
|
|
4
|
+
import "./trueSight-D4lGrWie.esm.js";
|
|
5
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, w as SDK_PLATFORM, x as IpifyProvider, y as getThumbmarkId } from "./sessionInitializer-DIvmVdz7.esm.js";
|
|
6
6
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
7
7
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
8
8
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-0SxaYTcb.esm.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/internal/forms/definitionSource.ts
|
|
2
|
+
const queryKey = ({ module, source, country }) => `${module}|${source ?? ""}|${country ?? ""}`;
|
|
3
|
+
/**
|
|
4
|
+
* The definitions bundled with this build. Matches module, source and country
|
|
5
|
+
* exactly, so a pair without its own definition keeps the current builder.
|
|
6
|
+
*/
|
|
7
|
+
function createBundledDefinitionSource(definitions) {
|
|
8
|
+
const byQuery = new Map(Object.values(definitions).map((definition) => [queryKey(definition), definition]));
|
|
9
|
+
return { select: (query) => byQuery.get(queryKey(query)) };
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { createBundledDefinitionSource as t };
|
package/dist/{desktopCameraElection-C2jhy2Fd.esm.js → desktopCameraElection-qohTs4WJ.esm.js}
RENAMED
|
@@ -3,14 +3,14 @@ import { d as CAMERA_CYCLE_OWNERSHIP_DOMAIN, f as getCameraCycleOwnershipDomain,
|
|
|
3
3
|
import { r as setWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-DukEcrU8.esm.js";
|
|
4
4
|
import { i as utilityWasmApi } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
5
5
|
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
6
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
7
|
-
import "./trueSight-
|
|
8
|
-
import { m as getFeatureGate } from "./feature-management-
|
|
6
|
+
import { u as trueSightLog } from "./trueSightService-BALqKKZM.esm.js";
|
|
7
|
+
import "./trueSight-D4lGrWie.esm.js";
|
|
8
|
+
import { m as getFeatureGate } from "./feature-management-B9UE3gHm.esm.js";
|
|
9
9
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
10
10
|
import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
|
|
11
11
|
import { l as queryCameraPermission } from "./permissionServices-Csq_7Cbg.esm.js";
|
|
12
12
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
13
|
-
import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-
|
|
13
|
+
import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-cZcB69u8.esm.js";
|
|
14
14
|
import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
15
15
|
//#region ../infra/src/capabilities/ICameraCycleCapability.ts
|
|
16
16
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-Cy6Lx3L6.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-sJWgqtUy.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
|
2
2
|
import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-
|
|
5
|
+
import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-CKiwEPW-.esm.js";
|
|
6
6
|
//#region src/modules/document-signature/documentSignatureActor.ts
|
|
7
7
|
function createDocumentSignatureActor(options) {
|
|
8
8
|
return createActor(documentSignatureMachine, { input: { config: options.config } }).start();
|
|
@@ -102,14 +102,14 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
102
102
|
id: string | undefined;
|
|
103
103
|
};
|
|
104
104
|
}>, Values<{
|
|
105
|
-
clearError: {
|
|
106
|
-
type: "clearError";
|
|
107
|
-
params: NonReducibleUnknown;
|
|
108
|
-
};
|
|
109
105
|
decrementAttemptsRemaining: {
|
|
110
106
|
type: "decrementAttemptsRemaining";
|
|
111
107
|
params: NonReducibleUnknown;
|
|
112
108
|
};
|
|
109
|
+
clearError: {
|
|
110
|
+
type: "clearError";
|
|
111
|
+
params: NonReducibleUnknown;
|
|
112
|
+
};
|
|
113
113
|
setStream: {
|
|
114
114
|
type: "setStream";
|
|
115
115
|
params: NonReducibleUnknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
3
3
|
import "./events-ChMS-UzR.esm.js";
|
|
4
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
4
|
+
import { i as toIncodeApiError } from "./apiError-CqREkn-Z.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
7
|
//#region src/modules/document-signature/documentSignatureServices.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-luLe6C_0.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-DFdQrll7.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
6
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-luLe6C_0.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
8
8
|
function createDynamicFormsActor(options) {
|
|
9
9
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-D_KmQwDZ.esm.js → dynamicFormsStateMachine-luLe6C_0.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-CqREkn-Z.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
-
import { n as calendarDateError } from "./calendarDate-
|
|
5
|
+
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsFields.ts
|
|
8
8
|
function getEffectiveType(question) {
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
-
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
5
|
-
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-
|
|
2
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-ia31g4VQ.js";
|
|
4
|
+
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BaA0Qscz.js";
|
|
5
|
+
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-DZdSXQMK.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
|
7
7
|
type EkybFlowConfig = FlowModuleConfig['EKYB'];
|
|
8
8
|
//#endregion
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { h as isSupportedCountry, l as ALL_COUNTRIES, p as SUPPORTED_COUNTRIES, s as toEkybConfig, u as DEV_ONLY_COUNTRIES } from "./ekybUtils-Z9MhFAer.esm.js";
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-BxRrq-KS.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-6Z1l1gNi.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
6
|
+
import { t as ekybMachine } from "./ekybStateMachine-BxRrq-KS.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYB actor.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
4
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
5
|
+
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BaA0Qscz.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybStateMachine.d.ts
|
|
7
7
|
declare const ekybMachine: any;
|
|
8
8
|
type EkybMachine = typeof ekybMachine;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-BNxrW8xK.esm.js";
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
2
|
+
import { n as getFlow } from "./flowServices-Be3Kldxe.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, h as isSupportedCountry, i as isFormFieldEntry, l as ALL_COUNTRIES, m as UBO_FIELD_LABELS, n as hasAtLeastOneAddressField, o as sortModulesByOrder, r as isFieldOptional, s as toEkybConfig } from "./ekybUtils-Z9MhFAer.esm.js";
|
|
6
6
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
|
|
8
|
+
import { n as requiresCnpjValidation } from "./cnpj-D5cxwIe-.esm.js";
|
|
9
|
+
import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-DKdOJ_e-.esm.js";
|
|
9
10
|
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
10
|
-
import {
|
|
11
|
+
import { t as createBundledDefinitionSource } from "./definitionSource-C_pmsYIx.esm.js";
|
|
11
12
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
12
13
|
const createValidators = () => ({
|
|
13
14
|
required: (value, _rule, field) => {
|
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-qgG_uUKA.js";
|
|
1
|
+
import { a as EkycPrefillFieldDef, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, n as EkycPrefillConfigField, o as EkycPrefillFieldError, s as EkycPrefillFieldErrors, t as EkycPrefillConfig, u as EkycPrefillServedField } from "./types-g3NuVCT9.js";
|
|
2
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-BwmPXfhY.js";
|
|
4
3
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
|
@@ -15,4 +14,4 @@ import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSub
|
|
|
15
14
|
*/
|
|
16
15
|
declare function toEkycPrefillConfig(raw: EkycPrefillModuleConfig | EkycPrefillConfig | undefined): EkycPrefillConfig;
|
|
17
16
|
//#endregion
|
|
18
|
-
export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type
|
|
17
|
+
export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type EkycPrefillFieldError, type EkycPrefillFieldErrors, type EkycPrefillFinishedState, type EkycPrefillFormState, type EkycPrefillIdleState, type EkycPrefillLimitReachedState, type EkycPrefillManager, type EkycPrefillMisconfiguredState, type EkycPrefillModuleConfig, type EkycPrefillServedField, type EkycPrefillState, type EkycPrefillSubmittingState, type EkycPrefillValues, createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-CWrth_EQ.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-BZLno7cn.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-
|
|
3
|
-
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-
|
|
1
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
2
|
+
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-tOSLpcSa.js";
|
|
3
|
+
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-DusmB-4j.js";
|
|
4
4
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { d as toEkycConfig } from "./ekycUtils-C6HZB46m.esm.js";
|
|
2
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
2
|
+
import { t as ekycMachine } from "./ekycStateMachine-CM1YRW27.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-CDxoP5gL.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-ChMS-UzR.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-
|
|
6
|
+
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-CM1YRW27.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-
|
|
4
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
5
|
+
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-tOSLpcSa.js";
|
|
6
6
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
7
7
|
declare const ekycMachine: any;
|
|
8
8
|
type EkycMachine = typeof ekycMachine;
|