@incodetech/core 0.0.0-dev-20261124-bcd99b1e → 0.0.0-dev-20261125-a91bf928

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 (133) hide show
  1. package/dist/{FaceDetectionProvider-D4ncumfe.esm.js → FaceDetectionProvider-D-1rS3WB.esm.js} +4 -4
  2. package/dist/{definitionSource-B-Z2EgJJ.esm.js → addressSearch-DKdOJ_e-.esm.js} +67 -8
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{phoneFormat-C3q0Ukh4.esm.js → allowedCharacters-Bnir--CN.esm.js} +1 -11
  5. package/dist/{apiError-a7tezk_O.esm.js → apiError-CxKf45Ky.esm.js} +1 -1
  6. package/dist/authentication.d.ts +3 -3
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-Cp64l__H.d.ts → authenticationManager-BManpfgb.d.ts} +1 -1
  9. package/dist/{authenticationManager-IpVKgxPn.esm.js → authenticationManager-CThxh6EJ.esm.js} +3 -3
  10. package/dist/{authenticationStateMachine-B4CuMBgC.esm.js → authenticationStateMachine-DN122Cii.esm.js} +3 -3
  11. package/dist/{calendarDate-DcqGuEht.esm.js → calendarDate-D2zWfUlA.esm.js} +1 -1
  12. package/dist/{cnpj-Bl_olpdX.esm.js → cnpj-CVq3vL39.esm.js} +1 -9
  13. package/dist/cnpj-D5cxwIe-.esm.js +9 -0
  14. package/dist/curp-validation.d.ts +1 -1
  15. package/dist/curp-validation.esm.js +2 -2
  16. package/dist/{curpValidationManager-C6WmQToS.esm.js → curpValidationManager-4v5qMUXm.esm.js} +1 -1
  17. package/dist/{curpValidationManager-Dynwqu2z.d.ts → curpValidationManager-9U7zMZt8.d.ts} +1 -1
  18. package/dist/{curpValidationStateMachine-BbJ4YAzE.esm.js → curpValidationStateMachine-BPkEZtmd.esm.js} +1 -1
  19. package/dist/custom-fields.esm.js +1 -1
  20. package/dist/{customFieldsManager-BBy6X9nh.esm.js → customFieldsManager-BX3u8VPe.esm.js} +1 -1
  21. package/dist/{deepsightCaptureConfig-D0PCzVcM.esm.js → deepsightCaptureConfig-B7HX2BKP.esm.js} +2 -2
  22. package/dist/{deepsightLoader-nbl5Dhvf.esm.js → deepsightLoader-C_fdJi9H.esm.js} +4 -4
  23. package/dist/definitionSource-C_pmsYIx.esm.js +12 -0
  24. package/dist/{desktopCameraElection-C2jhy2Fd.esm.js → desktopCameraElection-A7IPW-RU.esm.js} +4 -4
  25. package/dist/document-capture.d.ts +1 -1
  26. package/dist/document-signature.esm.js +1 -1
  27. package/dist/{documentCaptureManager-DOgJTJ4F.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +4 -4
  28. package/dist/{documentSignatureStateMachine-DoeIrTmr.esm.js → documentSignatureStateMachine-ClNEf1FQ.esm.js} +1 -1
  29. package/dist/dynamic-forms.esm.js +2 -2
  30. package/dist/{dynamicFormsManager-D_QpTKfT.esm.js → dynamicFormsManager-nl9-642J.esm.js} +1 -1
  31. package/dist/{dynamicFormsStateMachine-D_KmQwDZ.esm.js → dynamicFormsStateMachine-DwjwenOE.esm.js} +2 -2
  32. package/dist/ekyb.d.ts +4 -4
  33. package/dist/ekyb.esm.js +2 -2
  34. package/dist/{ekybManager-BG7eju18.esm.js → ekybManager-B-tbtSFb.esm.js} +1 -1
  35. package/dist/{ekybManager-BflWuTe4.d.ts → ekybManager-DZdSXQMK.d.ts} +2 -2
  36. package/dist/{ekybStateMachine-Bc-m_PHQ.esm.js → ekybStateMachine-BC4eZWrb.esm.js} +5 -4
  37. package/dist/ekyc-prefill.d.ts +3 -4
  38. package/dist/ekyc-prefill.esm.js +2 -2
  39. package/dist/ekyc.d.ts +3 -3
  40. package/dist/ekyc.esm.js +2 -2
  41. package/dist/{ekycManager-BPUHoUHy.esm.js → ekycManager-CDxoP5gL.esm.js} +1 -1
  42. package/dist/{ekycManager-BldDiWTJ.d.ts → ekycManager-DusmB-4j.d.ts} +2 -2
  43. package/dist/{ekycPrefillManager-qgG_uUKA.d.ts → ekycPrefillManager-BwmPXfhY.d.ts} +17 -17
  44. package/dist/{ekycPrefillManager-BaX95xIW.esm.js → ekycPrefillManager-Cu5EAnkQ.esm.js} +6 -7
  45. package/dist/{ekycPrefillStateMachine-C8FEAHbH.esm.js → ekycPrefillStateMachine-DdHdgSaW.esm.js} +567 -165
  46. package/dist/{ekycStateMachine-Cq94FpIm.esm.js → ekycStateMachine-CM1YRW27.esm.js} +483 -155
  47. package/dist/electronic-signature.esm.js +1 -1
  48. package/dist/{electronicSignatureManager-bgoE6nL8.esm.js → electronicSignatureManager-knl_X2jh.esm.js} +1 -1
  49. package/dist/extensibility.d.ts +15 -15
  50. package/dist/extensibility.esm.js +17 -17
  51. package/dist/{faceCaptureManagerFactory-DvH9-zIi.esm.js → faceCaptureManagerFactory-D0eN82qj.esm.js} +2 -2
  52. package/dist/{faceCaptureManagerFactory-BZ2XHhkj.d.ts → faceCaptureManagerFactory-Dm7p3T_t.d.ts} +3 -3
  53. package/dist/{faceCaptureSetup-DuFiwK9F.esm.js → faceCaptureSetup-BfedgErd.esm.js} +7 -7
  54. package/dist/{feature-management-DiL2uBlX.esm.js → feature-management-BD2hrfZ3.esm.js} +1 -1
  55. package/dist/feature-management.esm.js +1 -1
  56. package/dist/flow-events.d.ts +1 -1
  57. package/dist/flow.d.ts +7 -7
  58. package/dist/flow.esm.js +3 -3
  59. package/dist/{flowCompletionService-Bs4oWd_W.esm.js → flowCompletionService-DlXzGwgu.esm.js} +1 -1
  60. package/dist/{flowServices-KLGZ3eWm.esm.js → flowServices-CxTdN-OL.esm.js} +4 -4
  61. package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
  62. package/dist/geolocation.d.ts +1 -1
  63. package/dist/geolocation.esm.js +2 -2
  64. package/dist/{geolocationManager-Del2ddmt.d.ts → geolocationManager-CENrvxpK.d.ts} +1 -1
  65. package/dist/{geolocationManager-el4FUmYy.esm.js → geolocationManager-Ch5lOvYH.esm.js} +1 -1
  66. package/dist/{geolocationStateMachine-BnM-qTe3.esm.js → geolocationStateMachine-EN7it_FF.esm.js} +1 -1
  67. package/dist/home.d.ts +1 -1
  68. package/dist/id-ocr.d.ts +1 -1
  69. package/dist/id-ocr.esm.js +2 -2
  70. package/dist/id-selfie-flow.d.ts +1 -1
  71. package/dist/id-selfie-flow.esm.js +6 -6
  72. package/dist/id.d.ts +2 -2
  73. package/dist/id.esm.js +3 -3
  74. package/dist/{idCaptureManager-UnWwLa3I.esm.js → idCaptureManager-CH2bkanx.esm.js} +4 -4
  75. package/dist/{idCaptureManager-Co4ZZ-pd.d.ts → idCaptureManager-jjNknNiP.d.ts} +2 -2
  76. package/dist/{idCaptureServices-DFUdwccM.esm.js → idCaptureServices-BN57-oba.esm.js} +2 -2
  77. package/dist/{idCaptureStateMachine-DGWGB0Tz.esm.js → idCaptureStateMachine-DIM0ZxBY.esm.js} +11 -11
  78. package/dist/{idOcrManager-C3BHGgSb.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
  79. package/dist/{idOcrManager-XTbpfHoF.esm.js → idOcrManager-Dl9eNhT8.esm.js} +1 -1
  80. package/dist/{idOcrStateMachine-B-00PgPh.esm.js → idOcrStateMachine-CEkUWxGy.esm.js} +1 -1
  81. package/dist/{index-RghgiJVx.d.ts → index-B-K_tV2Q.d.ts} +1 -1
  82. package/dist/index.esm.js +1 -1
  83. package/dist/kyb-checks.d.ts +3 -3
  84. package/dist/kyb-checks.esm.js +2 -2
  85. package/dist/{kybChecksManager-CbkCctw0.esm.js → kybChecksManager-Bh-oiXei.esm.js} +2 -2
  86. package/dist/{kybChecksManager-B7Di9auB.d.ts → kybChecksManager-CKDy1mel.d.ts} +1 -1
  87. package/dist/{kybChecksStateMachine-BeB_cgk4.esm.js → kybChecksStateMachine-WIdi80Sq.esm.js} +175 -178
  88. package/dist/mandatory-consent.d.ts +2 -2
  89. package/dist/{mandatoryConsentManager-B_eFZmo-.d.ts → mandatoryConsentManager-Bwl0YPwg.d.ts} +1 -1
  90. package/dist/numericRange-zDZFvRb8.esm.js +274 -0
  91. package/dist/qe-signature.esm.js +1 -1
  92. package/dist/{recordingService-PUU8CObN.esm.js → recordingService-5o50qJ9A.esm.js} +1 -1
  93. package/dist/{runChildModule-BOvtfM8r.esm.js → runChildModule-vqgSWeEF.esm.js} +1 -1
  94. package/dist/{sdkVersion-thMGaHAC.esm.js → sdkVersion-C3x7ZDSE.esm.js} +1 -1
  95. package/dist/selfie.d.ts +3 -3
  96. package/dist/selfie.esm.js +7 -7
  97. package/dist/{selfieErrorUtils-CqudCvHN.esm.js → selfieErrorUtils-BB-nxdeJ.esm.js} +1 -1
  98. package/dist/{selfieManager-DWRVOhOE.esm.js → selfieManager-CpV6Lw0q.esm.js} +3 -3
  99. package/dist/{selfieManager-CKm034l4.d.ts → selfieManager-DOwu6Ukf.d.ts} +1 -1
  100. package/dist/{selfieStateMachine-CNELgWFK.esm.js → selfieStateMachine-Bxi31PsA.esm.js} +3 -3
  101. package/dist/{session-pNSU6n3-.esm.js → session-syFGvfFW.esm.js} +4 -4
  102. package/dist/session.d.ts +1 -1
  103. package/dist/session.esm.js +4 -4
  104. package/dist/{sessionInitializer-BzvYgZCQ.esm.js → sessionInitializer-C4cinkbs.esm.js} +4 -4
  105. package/dist/{setup-BQVlJnC0.esm.js → setup-cZWqRr7-.esm.js} +5 -5
  106. package/dist/trueSight-DK2Q1w9z.esm.js +1 -0
  107. package/dist/{trueSightService-DjwNQ37t.esm.js → trueSightService-Bm5K21-R.esm.js} +1 -1
  108. package/dist/types-BTJWXYHA.d.ts +6 -0
  109. package/dist/{types-BgRHw-dR.d.ts → types-BaA0Qscz.d.ts} +1 -1
  110. package/dist/{types-_rJ2GjgK.d.ts → types-BqDc7tER.d.ts} +1 -1
  111. package/dist/{types-DFgJ26nw.d.ts → types-CH9u9ikn.d.ts} +1 -1
  112. package/dist/{types-Dy4XI7jR.d.ts → types-CRzImo5V.d.ts} +1 -1
  113. package/dist/{types-BiUMy0Vp.d.ts → types-CoXJsu1W.d.ts} +1 -1
  114. package/dist/{textRules-D4NRinKY.d.ts → types-D6Q1D1kx.d.ts} +1 -9
  115. package/dist/{types-CTaL0XJz.d.ts → types-DWqO7owj.d.ts} +2 -24
  116. package/dist/{types-mK4qyHxM.d.ts → types-g3NuVCT9.d.ts} +16 -29
  117. package/dist/{types-aKXf9SVN.d.ts → types-ia31g4VQ.d.ts} +3 -3
  118. package/dist/{types-Bdes6iC1.d.ts → types-tOSLpcSa.d.ts} +10 -2
  119. package/dist/video-selfie.d.ts +1 -1
  120. package/dist/video-selfie.esm.js +3 -3
  121. package/dist/{videoSelfieCameraWarmer-M25qqewS.esm.js → videoSelfieCameraWarmer-B5atbHuu.esm.js} +3 -3
  122. package/dist/{videoSelfieStepDetector-BBXE3DnI.d.ts → videoSelfieStepDetector-Dfj7UUF3.d.ts} +2 -2
  123. package/dist/wasm.esm.js +1 -1
  124. package/dist/watchlist-for-business.esm.js +2 -2
  125. package/dist/{watchlistForBusinessManager-DxeSH80T.esm.js → watchlistForBusinessManager-CiSWk1Lh.esm.js} +1 -1
  126. package/dist/{watchlistForBusinessStateMachine-BC9UWLuZ.esm.js → watchlistForBusinessStateMachine-DiQW42sd.esm.js} +3 -2
  127. package/dist/workflow.d.ts +1 -1
  128. package/dist/workflow.esm.js +21 -21
  129. package/package.json +1 -1
  130. package/dist/addressSearch-BKlynuBr.esm.js +0 -71
  131. package/dist/ekycRules-B7kUzSgu.esm.js +0 -598
  132. package/dist/trueSight-CiveOb7r.esm.js +0 -1
  133. package/dist/types-J7D0pbWH.d.ts +0 -6
@@ -2,12 +2,11 @@ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput,
2
2
  import "./xstate.cjs-D6Ur0X1F.js";
3
3
  import { t as Manager } from "./Manager-DufwKlav.js";
4
4
  import "./Actor-DqjOqDfU.js";
5
- import { a as EkycFormValues, c as EkycValidationErrors } from "./types-Bdes6iC1.js";
6
- import { a as EkycPrefillFieldDef, i as EkycPrefillErrorKind, l as EkycPrefillSubmitPlan, o as EkycPrefillInput, r as EkycPrefillContext, s as EkycPrefillModuleConfig, t as EkycPrefillConfig, u as EkycPrefillSubmitResponse } from "./types-mK4qyHxM.js";
5
+ import { a as EkycPrefillFieldDef, c as EkycPrefillInput, d as EkycPrefillSubmitResponse, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, r as EkycPrefillContext, s as EkycPrefillFieldErrors, t as EkycPrefillConfig } from "./types-g3NuVCT9.js";
7
6
  //#region src/modules/ekyc-prefill/ekycPrefillStateMachine.d.ts
8
7
  type SubmitInput = {
9
- submit: EkycPrefillSubmitPlan;
10
- values: EkycFormValues;
8
+ config: EkycPrefillConfig;
9
+ values: EkycPrefillValues;
11
10
  };
12
11
  declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
13
12
  type: "LOAD";
@@ -82,6 +81,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
82
81
  params: NonReducibleUnknown;
83
82
  };
84
83
  }>, Values<{
84
+ isValid: {
85
+ type: "isValid";
86
+ params: unknown;
87
+ };
85
88
  phoneRulesFailed: {
86
89
  type: "phoneRulesFailed";
87
90
  params: unknown;
@@ -94,10 +97,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
94
97
  type: "canRender";
95
98
  params: unknown;
96
99
  };
97
- isValid: {
98
- type: "isValid";
99
- params: unknown;
100
- };
101
100
  isBadRequest: {
102
101
  type: "isBadRequest";
103
102
  params: unknown;
@@ -110,7 +109,7 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
110
109
  type: "isLimitReached";
111
110
  params: unknown;
112
111
  };
113
- }>, never, "error" | "idle" | "closed" | "finished" | "misconfigured" | "submitting" | "limitReached" | {
112
+ }>, never, "error" | "idle" | "closed" | "finished" | "submitting" | "misconfigured" | "limitReached" | {
114
113
  form: "inputting" | "validating";
115
114
  }, string, EkycPrefillInput, NonReducibleUnknown, EventObject, MetaObject, {
116
115
  readonly id: "ekycPrefill";
@@ -216,7 +215,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
216
215
  values: {};
217
216
  errors: {};
218
217
  invalidFormats: {};
219
- anyOfError: false;
220
218
  phoneRulesLoaded: false;
221
219
  phoneRulesFailed: false;
222
220
  submitError: undefined;
@@ -401,8 +399,8 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
401
399
  type: "CLOSE";
402
400
  }, AnyEventObject>;
403
401
  }) => {
404
- submit: EkycPrefillSubmitPlan;
405
- values: EkycFormValues;
402
+ config: EkycPrefillConfig;
403
+ values: EkycPrefillValues;
406
404
  };
407
405
  readonly onDone: {
408
406
  readonly target: "finished";
@@ -474,20 +472,22 @@ type CreateEkycPrefillActorOptions = {
474
472
  type EkycPrefillIdleState = {
475
473
  status: 'idle';
476
474
  };
477
- /** The "at least one of" rule: its members and the message shown under them. */
475
+ /**
476
+ * The "at least one of" rule: its members and its message. Show the message
477
+ * as a hint under them. A member left empty gets it as its own error (in
478
+ * `errors`); show the hint only while no member does.
479
+ */
478
480
  type EkycPrefillAnyOfState = {
479
481
  fields: string[];
480
482
  /** Message key. Its `fields` param lists the members' labels. */
481
483
  message: string;
482
- /** Show the message as an error; otherwise as a hint. */
483
- showError: boolean;
484
484
  };
485
485
  type EkycPrefillFormState = {
486
486
  status: 'form';
487
487
  country: string;
488
488
  fields: EkycPrefillFieldDef[];
489
- values: EkycFormValues;
490
- errors: EkycValidationErrors;
489
+ values: EkycPrefillValues;
490
+ errors: EkycPrefillFieldErrors;
491
491
  anyOf: EkycPrefillAnyOfState | undefined;
492
492
  /** A rejection the form can't pin on one field. Message key. */
493
493
  submitError: string | undefined;
@@ -1,6 +1,7 @@
1
1
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
2
2
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
3
- import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-C8FEAHbH.esm.js";
3
+ import { l as validateAllValues } from "./formErrors-lSfh7Y8J.esm.js";
4
+ import { n as ekycPrefillFormCheck, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DdHdgSaW.esm.js";
4
5
  //#region src/modules/ekyc-prefill/ekycPrefillActor.ts
5
6
  /** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
6
7
  function createEkycPrefillActor(options = {}) {
@@ -12,18 +13,16 @@ function mapState(snapshot) {
12
13
  const typedSnapshot = snapshot;
13
14
  const { context } = typedSnapshot;
14
15
  if (typedSnapshot.matches("form") && context.prepared) {
15
- const { prepared, values, invalidFormats } = context;
16
- const canSubmit = Object.keys(validateForm(prepared, values, invalidFormats)).length === 0 && !isAnyOfMissing(prepared, values);
16
+ const { prepared, values } = context;
17
+ const check = ekycPrefillFormCheck(context.config);
18
+ const canSubmit = !!check && Object.keys(validateAllValues(context, check)).length === 0;
17
19
  return {
18
20
  status: "form",
19
21
  country: prepared.country,
20
22
  fields: prepared.fields,
21
23
  values,
22
24
  errors: context.errors,
23
- anyOf: prepared.anyOf && {
24
- ...prepared.anyOf,
25
- showError: context.anyOfError
26
- },
25
+ anyOf: prepared.anyOf && { ...prepared.anyOf },
27
26
  submitError: context.submitError,
28
27
  canSubmit
29
28
  };