@incodetech/core 0.0.0-dev-20261201-5456180d → 0.0.0-dev-20261201-e37652f8

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.
Files changed (88) hide show
  1. package/dist/{FaceDetectionProvider-DH7QsBFD.esm.js → FaceDetectionProvider-DQYbHLxC.esm.js} +4 -4
  2. package/dist/{addressSearch-Cxpb5vKl.esm.js → addressSearch-gginelz3.esm.js} +28 -26
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-BVYipHwI.esm.js → apiError-BRiJu_rv.esm.js} +1 -1
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-Kfm9HxbR.esm.js → authenticationManager-CrBlRkAd.esm.js} +3 -3
  7. package/dist/{authenticationStateMachine-DCVCf6tZ.esm.js → authenticationStateMachine-DLwEyCeH.esm.js} +3 -3
  8. package/dist/consent.d.ts +1 -1
  9. package/dist/{consentManager-vI6QHkHU.d.ts → consentManager-Bow34QP_.d.ts} +9 -9
  10. package/dist/{deepsightCaptureConfig-BfIw-FNj.esm.js → deepsightCaptureConfig-BVJANeRn.esm.js} +2 -2
  11. package/dist/{deepsightLoader-DCSozoXG.esm.js → deepsightLoader-C6nKqY9Q.esm.js} +4 -4
  12. package/dist/{desktopCameraElection-C7OkCslA.esm.js → desktopCameraElection-BAq-Kaiq.esm.js} +4 -4
  13. package/dist/document-capture.d.ts +1 -1
  14. package/dist/document-signature.esm.js +1 -1
  15. package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +4 -4
  16. package/dist/{documentSignatureStateMachine-C1CsjsVW.esm.js → documentSignatureStateMachine-Btlg3q7j.esm.js} +1 -1
  17. package/dist/dynamic-forms.esm.js +2 -2
  18. package/dist/{dynamicFormsManager-DhyIhZ1C.esm.js → dynamicFormsManager-SbEUnFoF.esm.js} +1 -1
  19. package/dist/{dynamicFormsStateMachine-CDyk9sXA.esm.js → dynamicFormsStateMachine-Dxv36mAP.esm.js} +1 -1
  20. package/dist/ekyb.esm.js +2 -2
  21. package/dist/{ekybManager-4ESLrIAZ.esm.js → ekybManager-xhoOX9O9.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-BVQ7DyO1.esm.js → ekybStateMachine-CCjUH0j3.esm.js} +183 -56
  23. package/dist/ekyc-prefill.d.ts +1 -1
  24. package/dist/ekyc-prefill.esm.js +2 -2
  25. package/dist/ekyc.d.ts +3 -0
  26. package/dist/ekyc.esm.js +3 -3
  27. package/dist/{ekycManager-k0d38zcZ.esm.js → ekycManager-DrGuK0kT.esm.js} +1 -1
  28. package/dist/{ekycPrefillManager-3nHwnh_4.esm.js → ekycPrefillManager-C9kdwCC6.esm.js} +2 -2
  29. package/dist/{ekycPrefillManager-BwmPXfhY.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +4 -4
  30. package/dist/{ekycPrefillStateMachine-bz_k9jTV.esm.js → ekycPrefillStateMachine-DiQifkkd.esm.js} +8 -87
  31. package/dist/{ekycStateMachine-BudF0QZu.esm.js → ekycStateMachine-BmMdLe2G.esm.js} +298 -125
  32. package/dist/{ekycUtils-BnTyeA-_.esm.js → ekycUtils-DfBNTcvX.esm.js} +41 -5
  33. package/dist/electronic-signature.esm.js +1 -1
  34. package/dist/{electronicSignatureManager-BMalzzyT.esm.js → electronicSignatureManager-C6liTNbu.esm.js} +1 -1
  35. package/dist/extensibility.d.ts +6 -6
  36. package/dist/extensibility.esm.js +13 -13
  37. package/dist/{faceCaptureManagerFactory-cQl5HDIn.esm.js → faceCaptureManagerFactory-OL8BWaIW.esm.js} +2 -2
  38. package/dist/{faceCaptureSetup-DzWl2VJI.esm.js → faceCaptureSetup-DQVtmb1q.esm.js} +7 -7
  39. package/dist/{feature-management-BVxb2LDw.esm.js → feature-management-D_T-MG_i.esm.js} +1 -1
  40. package/dist/feature-management.esm.js +1 -1
  41. package/dist/flow.esm.js +3 -3
  42. package/dist/{flowCompletionService-DK-fZm71.esm.js → flowCompletionService-L0J63ui-.esm.js} +1 -1
  43. package/dist/{flowServices-DO_evfcT.esm.js → flowServices-3OXrEqDE.esm.js} +5 -5
  44. package/dist/formDefinitionsRollout-B-c4yO2z.esm.js +30 -0
  45. package/dist/{formErrors-lSfh7Y8J.esm.js → formErrors-kpskZLNT.esm.js} +39 -180
  46. package/dist/geolocation.d.ts +1 -1
  47. package/dist/geolocation.esm.js +2 -2
  48. package/dist/{geolocationManager-DcuPbxtE.esm.js → geolocationManager-CREfQNgO.esm.js} +1 -1
  49. package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
  50. package/dist/{geolocationStateMachine-C2r0HXYO.esm.js → geolocationStateMachine-D9_bBr19.esm.js} +1 -1
  51. package/dist/id-ocr.d.ts +1 -1
  52. package/dist/id-selfie-flow.esm.js +6 -6
  53. package/dist/id.esm.js +3 -3
  54. package/dist/{idCaptureManager-B3e-0VFl.esm.js → idCaptureManager-B5ZN7scK.esm.js} +4 -4
  55. package/dist/{idCaptureServices-CoHVsKtz.esm.js → idCaptureServices-7zZ457LW.esm.js} +2 -2
  56. package/dist/{idCaptureStateMachine-Cbg0iyXR.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js} +11 -11
  57. package/dist/{idOcrManager-DflRx-_u.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
  58. package/dist/index.esm.js +1 -1
  59. package/dist/kyb-checks.esm.js +2 -2
  60. package/dist/{kybChecksManager-BDHpxk15.esm.js → kybChecksManager-tUsFKBCN.esm.js} +1 -1
  61. package/dist/{kybChecksStateMachine-UIwv8ipY.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js} +3 -3
  62. package/dist/mandatory-consent.d.ts +1 -1
  63. package/dist/{mandatoryConsentManager-ESpx168S.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts} +5 -5
  64. package/dist/qe-signature.esm.js +1 -1
  65. package/dist/{recordingService-G0FrtpAb.esm.js → recordingService-OcyZO_w6.esm.js} +1 -1
  66. package/dist/{runChildModule-Dgi34yo9.esm.js → runChildModule-BuZFd3Df.esm.js} +1 -1
  67. package/dist/{sdkVersion-CrFzbh9y.esm.js → sdkVersion-BY8g-EEL.esm.js} +1 -1
  68. package/dist/selfie.esm.js +7 -7
  69. package/dist/{selfieErrorUtils-DR2Gve4F.esm.js → selfieErrorUtils-DIVWh0ih.esm.js} +1 -1
  70. package/dist/{selfieManager-B3Jd7q4s.esm.js → selfieManager-DQ5xB8y6.esm.js} +3 -3
  71. package/dist/{selfieStateMachine-DM40H79_.esm.js → selfieStateMachine-fyNh2r31.esm.js} +3 -3
  72. package/dist/{session-C7-dU7kj.esm.js → session-DKnCv6zu.esm.js} +4 -4
  73. package/dist/session.esm.js +4 -4
  74. package/dist/{sessionInitializer-NEJvsqjQ.esm.js → sessionInitializer-q5b8Qwr3.esm.js} +4 -4
  75. package/dist/{setup-DXnJ1L0L.esm.js → setup-JGwc0kgu.esm.js} +5 -5
  76. package/dist/trim-OmrUb6mG.esm.js +297 -0
  77. package/dist/trueSight-9VsfHXFt.esm.js +1 -0
  78. package/dist/{trueSightService-MNEZaA-i.esm.js → trueSightService-Dx8AqgKD.esm.js} +1 -1
  79. package/dist/uppercase-CwlIuiwR.esm.js +115 -0
  80. package/dist/video-selfie.esm.js +3 -3
  81. package/dist/{videoSelfieCameraWarmer-CPrXznbc.esm.js → videoSelfieCameraWarmer-AoMytGBD.esm.js} +3 -3
  82. package/dist/wasm.esm.js +1 -1
  83. package/dist/workflow.d.ts +4 -4
  84. package/dist/workflow.esm.js +19 -19
  85. package/package.json +1 -1
  86. package/dist/definitionSource-B9WTvQb9.esm.js +0 -30
  87. package/dist/resolveForm-DaaQSVWp.esm.js +0 -146
  88. package/dist/trueSight-CjUsM1U4.esm.js +0 -1
@@ -1,15 +1,15 @@
1
1
  import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
3
- import { i as toIncodeApiError } from "./apiError-BVYipHwI.esm.js";
3
+ import { i as toIncodeApiError } from "./apiError-BRiJu_rv.esm.js";
4
4
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.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
  import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
8
8
  import { a as hasNameCharacters, c as isEmailFormat, d as resolvePrefill, f as isValidRut, h as isValidEsDni, i as isNotFuture, l as digitCountError, m as isValidFiPersonalIdentityCode, n as hasScriptCharacters, o as isWithinMaxAge, p as isValidInDrivingLicenseNumber, r as isInNumericRange, s as isPoBox, t as SCRIPT_PATTERNS, u as hasDigitCount } from "./scriptCharacters-D7swUycV.esm.js";
9
9
  import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
10
- import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
11
- import { n as matchesCharTemplate, t as createBundledDefinitionSource } from "./definitionSource-B9WTvQb9.esm.js";
12
- import { a as e164, c as setFieldValue, d as createFormRegistry, f as supportedIds, i as oneOfRequired, l as validateAllValues, m as withMessage, n as requiredError, o as allowedCharacters, p as buildPayload, r as trim, s as phoneDeps, t as STRUCTURE_MESSAGES, u as validateFieldValue } from "./formErrors-lSfh7Y8J.esm.js";
10
+ import { a as buildPayload, i as checkSupport, n as e164, r as resolveForm, t as trim } from "./trim-OmrUb6mG.esm.js";
11
+ import { a as digitGroups, i as e164NoPlus, n as stripSeparators, o as createBundledDefinitionSource, r as nationalNumber, s as matchesCharTemplate, t as uppercase } from "./uppercase-CwlIuiwR.esm.js";
12
+ import { a as phoneDeps, c as validateFieldValue, d as supportedIds, i as allowedCharacters, l as withMessage, n as requiredError, o as setFieldValue, r as oneOfRequired, s as validateAllValues, t as STRUCTURE_MESSAGES, u as createFormRegistry } from "./formErrors-kpskZLNT.esm.js";
13
13
  import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
14
14
  //#region src/internal/forms/formatValue.ts
15
15
  /**
@@ -312,46 +312,6 @@ const digitCount = {
312
312
  error: (params) => digitCountError(countOf(params) ?? {})
313
313
  };
314
314
  //#endregion
315
- //#region src/internal/forms/rules/digitGroups.ts
316
- /**
317
- * `digitGroups`: formats digits as the user types, such as an SSN shown as
318
- * 3-2-4 (`groups: [3, 2, 4]`, `separator: "-"`). Other characters are
319
- * dropped, digits past the last group are cut, and a separator appears once
320
- * the next group has a digit (`1234` is `123-4`).
321
- *
322
- * `separators` (vocabulary 1.4) gives the separator after each group, in
323
- * order, such as a CPF shown as 3.3.3-2 (`separators: [".", ".", "-"]`). A
324
- * gap past the end of the list uses `separator`.
325
- */
326
- const digitGroups = {
327
- id: "digitGroups",
328
- apply: (value, params) => {
329
- const groups = Array.isArray(params.groups) ? params.groups.filter((size) => typeof size === "number") : [];
330
- const separator = typeof params.separator === "string" ? params.separator : "";
331
- const separators = Array.isArray(params.separators) ? params.separators : [];
332
- const separatorAfter = (index) => {
333
- const own = separators[index];
334
- return typeof own === "string" ? own : separator;
335
- };
336
- let digits = value.replace(/[^0-9]/g, "");
337
- let formatted = "";
338
- for (const [index, size] of groups.entries()) {
339
- if (!digits) break;
340
- if (index > 0) formatted += separatorAfter(index - 1);
341
- formatted += digits.slice(0, size);
342
- digits = digits.slice(size);
343
- }
344
- return formatted;
345
- }
346
- };
347
- //#endregion
348
- //#region src/internal/forms/rules/e164NoPlus.ts
349
- /** `e164NoPlus`: the phone as E.164 without the `+`. */
350
- const e164NoPlus = {
351
- id: "e164NoPlus",
352
- apply: (value, params, env) => e164.apply(value, params, env).replace(/^\+/, "")
353
- };
354
- //#endregion
355
315
  //#region src/internal/forms/rules/emailFormat.ts
356
316
  /** `emailFormat`: an email's shape, the value as typed, as eKYC checks it. */
357
317
  const emailFormat = {
@@ -420,17 +380,6 @@ const nameCharacters = {
420
380
  test: (value) => hasNameCharacters(value.trim())
421
381
  };
422
382
  //#endregion
423
- //#region src/internal/forms/rules/nationalNumber.ts
424
- /**
425
- * `nationalNumber`: the phone's national significant number, without the
426
- * calling code or a trunk 0. While the phone rules aren't loaded, or the
427
- * number can't be read, it stays as typed.
428
- */
429
- const nationalNumber = {
430
- id: "nationalNumber",
431
- apply: (value, _params, env) => env.deps.phone?.nationalNumber(value, env.country) ?? value
432
- };
433
- //#endregion
434
383
  //#region src/internal/forms/rules/noPoBox.ts
435
384
  /** `noPoBox`: the street doesn't describe a P.O. box, as eKYC checks it. */
436
385
  const noPoBox = {
@@ -591,41 +540,13 @@ function isSsnFormat(value) {
591
540
  return SSN_PATTERN.test(value);
592
541
  }
593
542
  //#endregion
594
- //#region src/internal/forms/rules/ssnFormat.ts
595
- /**
596
- * `ssnFormat`: a US SSN, the value as typed. eKYC's own validator still
597
- * requires both dashes; this follows the vocabulary.
598
- */
599
- const ssnFormat = {
600
- id: "ssnFormat",
601
- test: (value) => isSsnFormat(value)
602
- };
603
- //#endregion
604
- //#region src/internal/forms/rules/stripSeparators.ts
605
- /**
606
- * `stripSeparators`: removes spaces, `-`, `.` and `/`, or the characters in
607
- * `chars`. "Spaces" means any whitespace, as eKYC's input format reads it.
608
- */
609
- const stripSeparators = {
610
- id: "stripSeparators",
611
- apply: (value, params) => {
612
- if (typeof params.chars !== "string") return value.replace(/[\s./-]/g, "");
613
- const remove = new Set(params.chars);
614
- return [...value].filter((char) => !remove.has(char)).join("");
615
- }
616
- };
617
- //#endregion
618
- //#region src/internal/forms/rules/uppercase.ts
619
- /** `uppercase`: converts letters to uppercase, over Unicode code points. */
620
- const uppercase = {
621
- id: "uppercase",
622
- apply: (value) => value.toUpperCase()
623
- };
624
- //#endregion
625
543
  //#region src/internal/forms/rules/index.ts
626
544
  /** Every vocabulary rule, in vocabulary order. */
627
545
  const STANDARD_RULES = [
628
- ssnFormat,
546
+ {
547
+ id: "ssnFormat",
548
+ test: (value) => isSsnFormat(value)
549
+ },
629
550
  cpf,
630
551
  cnpj,
631
552
  postalCodeFormat,