@incodetech/core 2.1.0-rc.0 → 2.1.0-rc.1

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 (62) hide show
  1. package/dist/{WasmUtilProvider-CiEN7Gjn.esm.js → WasmUtilProvider-BKWm8rSA.esm.js} +19 -0
  2. package/dist/authentication.d.ts +3 -3
  3. package/dist/authentication.esm.js +8 -8
  4. package/dist/{authenticationManager-ZNotsWnC.esm.js → authenticationManager-BlR6mSaG.esm.js} +3 -3
  5. package/dist/{authenticationManager-CIVY80H9.d.ts → authenticationManager-CaiQbp-q.d.ts} +1 -1
  6. package/dist/{authenticationStateMachine-DksVbF_H.esm.js → authenticationStateMachine-DkcGUMw5.esm.js} +2 -2
  7. package/dist/camera.esm.js +2 -2
  8. package/dist/consent.d.ts +1 -1
  9. package/dist/{consentManager-BLd51QiW.d.ts → consentManager-Cg5Sk2tv.d.ts} +53 -53
  10. package/dist/cpf-ocr.d.ts +1 -1
  11. package/dist/{cpfOcrManager-BnieFXuG.d.ts → cpfOcrManager-Dg1s_TY5.d.ts} +17 -17
  12. package/dist/{deepsightLoader-65k1Appi.esm.js → deepsightLoader-8tnddNx-.esm.js} +1 -1
  13. package/dist/{deepsightService-B7ShOkWL.d.ts → deepsightService-Dh5P-hLf.d.ts} +5 -0
  14. package/dist/document-capture.d.ts +222 -222
  15. package/dist/document-capture.esm.js +4 -4
  16. package/dist/document-upload.d.ts +43 -43
  17. package/dist/{documentCaptureStateMachine-WYV1r9le.esm.js → documentCaptureStateMachine-CUTUzUw_.esm.js} +2 -2
  18. package/dist/ekyb.esm.js +3 -3
  19. package/dist/{ekybStateMachine-aYixw2sL.esm.js → ekybStateMachine-klc-AImJ.esm.js} +1 -1
  20. package/dist/extensibility.d.ts +18 -9
  21. package/dist/extensibility.esm.js +13 -13
  22. package/dist/face-match.d.ts +0 -11
  23. package/dist/face-match.esm.js +1 -1
  24. package/dist/{faceCaptureManagerFactory-C_hRHx8a.d.ts → faceCaptureManagerFactory-CjdBUS6s.d.ts} +14 -7
  25. package/dist/{faceCaptureManagerFactory-kqbUqtrr.esm.js → faceCaptureManagerFactory-ej2j1LMr.esm.js} +1 -1
  26. package/dist/{faceCaptureSetup-CtvHWd3x.esm.js → faceCaptureSetup-B9t6bYze.esm.js} +3 -3
  27. package/dist/{faceMatchStateMachine-DdGXUBnx.esm.js → faceMatchStateMachine-DeXXzSuz.esm.js} +6 -4
  28. package/dist/flow.d.ts +2 -2
  29. package/dist/flow.esm.js +2 -9
  30. package/dist/{flowServices-BTuHLHVr.esm.js → flowServices-ChgTNggJ.esm.js} +1 -1
  31. package/dist/home.d.ts +10 -10
  32. package/dist/id-ocr.d.ts +52 -52
  33. package/dist/id-verification.d.ts +25 -25
  34. package/dist/id.d.ts +2 -2
  35. package/dist/id.esm.js +41 -8
  36. package/dist/{idCaptureManager-D-QYESvF.d.ts → idCaptureManager-ChCNmgBj.d.ts} +13 -7
  37. package/dist/{idCaptureManager-DGVv5l1_.esm.js → idCaptureManager-D3pwWutw.esm.js} +2 -2
  38. package/dist/{idCaptureStateMachine-DHi7HydI.esm.js → idCaptureStateMachine-B3AiDIsT.esm.js} +6 -6
  39. package/dist/identity-reuse.d.ts +1 -1
  40. package/dist/{identityReuseManager-DwLtVzUn.d.ts → identityReuseManager-Cww-NDtd.d.ts} +34 -34
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.esm.js +3 -3
  43. package/dist/mandatory-consent.d.ts +1 -1
  44. package/dist/{mandatoryConsentManager-KfIlURRY.d.ts → mandatoryConsentManager-Dq6WiOZh.d.ts} +50 -50
  45. package/dist/{permissionGuards-C1ispV96.esm.js → permissionGuards-D0wGddy7.esm.js} +1 -1
  46. package/dist/{permissionServices-CG3bMSfG.esm.js → permissionServices-Doec4X5L.esm.js} +1 -1
  47. package/dist/{recordingService-Bn9EdCmz.esm.js → recordingService-yRw7hfzU.esm.js} +2 -2
  48. package/dist/selfie.d.ts +3 -3
  49. package/dist/selfie.esm.js +34 -9
  50. package/dist/{selfieManager-BjCoKRy0.esm.js → selfieManager-BNuTIGAz.esm.js} +3 -3
  51. package/dist/{selfieManager-dUbKRzOh.d.ts → selfieManager-C2y_t6DG.d.ts} +1 -1
  52. package/dist/{selfieStateMachine-b4F2q9zw.esm.js → selfieStateMachine-Bv99bZJE.esm.js} +2 -2
  53. package/dist/session.esm.js +1 -1
  54. package/dist/{sessionInitializer-B8H5MsXM.esm.js → sessionInitializer-DRB-hgbV.esm.js} +1 -1
  55. package/dist/{setup-BbkprdVv.d.ts → setup-BwCluiw3.d.ts} +29 -0
  56. package/dist/{setup-BqEfrdja.esm.js → setup-CUO4mErT.esm.js} +16 -4
  57. package/dist/trust-graph.d.ts +2 -2
  58. package/dist/wasm.d.ts +1 -1
  59. package/dist/wasm.esm.js +3 -3
  60. package/dist/workflow.d.ts +88 -95
  61. package/dist/workflow.esm.js +27 -53
  62. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import "./WasmUtilProvider-CiEN7Gjn.esm.js";
1
+ import "./WasmUtilProvider-BKWm8rSA.esm.js";
2
2
  import "./BrowserTimerProvider-DhNc_x02.esm.js";
3
3
  import { t as api } from "./api-CESGtpbH.esm.js";
4
4
  import { h as addEvent, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
@@ -6,7 +6,7 @@ import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
6
6
  import "./stats-BMNUG1AU.esm.js";
7
7
  import "./IpifyProvider-D4LWD15E.esm.js";
8
8
  import "./browserSimulation-B1dWiXp7.esm.js";
9
- import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-B8H5MsXM.esm.js";
9
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-DRB-hgbV.esm.js";
10
10
  import "./platform-SKvEfCBh.esm.js";
11
11
  import "./getBrowser-C8DP7oTB.esm.js";
12
12
  import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
@@ -15,9 +15,9 @@ import { n as electronicSignatureMachine } from "./electronicSignatureManager-Ba
15
15
  import "./ae-signature-BFZta3TZ.esm.js";
16
16
  import { t as antifraudMachine } from "./antifraudStateMachine-Ccrb-Jxc.esm.js";
17
17
  import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
18
- import "./permissionServices-CG3bMSfG.esm.js";
18
+ import "./permissionServices-Doec4X5L.esm.js";
19
19
  import "./camera-DJWm3V4g.esm.js";
20
- import "./recordingService-Bn9EdCmz.esm.js";
20
+ import "./recordingService-yRw7hfzU.esm.js";
21
21
  import "./ITimerCapability-CB0I1Uf2.esm.js";
22
22
  import "./canvas-SKcRBxsk.esm.js";
23
23
  import "./backCameraStream-D7Wo4Nbx.esm.js";
@@ -26,28 +26,28 @@ import "./getDeviceClass-C0olyNFS.esm.js";
26
26
  import "./getDeviceClass-C8Do2qYu.esm.js";
27
27
  import "./types-DsnEVMhr.esm.js";
28
28
  import "./StreamCanvasCapture-ImiDQdVA.esm.js";
29
- import "./permissionGuards-C1ispV96.esm.js";
30
- import "./faceCaptureSetup-CtvHWd3x.esm.js";
31
- import { t as authenticationMachine } from "./authenticationStateMachine-DksVbF_H.esm.js";
29
+ import "./permissionGuards-D0wGddy7.esm.js";
30
+ import "./faceCaptureSetup-B9t6bYze.esm.js";
31
+ import { t as authenticationMachine } from "./authenticationStateMachine-DkcGUMw5.esm.js";
32
32
  import { t as consentMachine } from "./consentStateMachine-BG3yL8aC.esm.js";
33
33
  import "./cpf-BRzggV8G.esm.js";
34
34
  import { t as curpValidationMachine } from "./curpValidationStateMachine-B7V_qp66.esm.js";
35
35
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-HmFybXLX.esm.js";
36
- import { t as documentCaptureMachine } from "./documentCaptureStateMachine-WYV1r9le.esm.js";
37
- import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-aYixw2sL.esm.js";
36
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CUTUzUw_.esm.js";
37
+ import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-klc-AImJ.esm.js";
38
38
  import "./addressSearch-DvmWXKZg.esm.js";
39
39
  import "./session-DoVb-OcB.esm.js";
40
- import "./flowServices-BTuHLHVr.esm.js";
40
+ import "./flowServices-ChgTNggJ.esm.js";
41
41
  import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-CXbpaJJn.esm.js";
42
42
  import { t as emailMachine } from "./emailStateMachine-CxTOMAjC.esm.js";
43
43
  import "./otp-CGMdUzBC.esm.js";
44
- import { t as selfieMachine } from "./selfieStateMachine-b4F2q9zw.esm.js";
45
- import { t as idCaptureMachine } from "./idCaptureStateMachine-DHi7HydI.esm.js";
44
+ import { t as selfieMachine } from "./selfieStateMachine-Bv99bZJE.esm.js";
45
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-B3AiDIsT.esm.js";
46
46
  import { t as phoneMachine } from "./phoneStateMachine-BiV0yoEx.esm.js";
47
47
  import { n as identityReuseMachine } from "./identityReuseStateMachine-BfE5YiEr.esm.js";
48
48
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DtQNW1ji.esm.js";
49
49
  import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-DyAdRxfP.esm.js";
50
- import { t as faceMatchMachine } from "./faceMatchStateMachine-DdGXUBnx.esm.js";
50
+ import { t as faceMatchMachine } from "./faceMatchStateMachine-DeXXzSuz.esm.js";
51
51
  import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CuoHZ1cx.esm.js";
52
52
  import { t as getFinishStatus } from "./flowCompletionService-DdGojV9K.esm.js";
53
53
  import { t as geolocationMachine } from "./geolocationStateMachine-Dvh7X0wF.esm.js";
@@ -130,27 +130,6 @@ function applyConfigMapper(moduleKey, raw, mappers) {
130
130
  const mapper = moduleKey ? mappers[moduleKey] : void 0;
131
131
  return mapper ? mapper(raw) : raw;
132
132
  }
133
- /**
134
- * Injects `processFaceBeforeMatch` into a FACE_MATCH node's raw config.
135
- *
136
- * In workflow mode the client never holds the full module list (nodes arrive
137
- * one at a time from the server), so the orchestrated-flow approach of scanning
138
- * `flow.flowModules` for an AUTHENTICATION module does not apply. Instead the
139
- * workflow tracks whether it has seen an AUTHENTICATION node (`sawAuthentication`)
140
- * and passes it here when launching FACE_MATCH. The AUTHENTICATION capture step
141
- * skips server-side face processing, so face-match must trigger `process/face`
142
- * before reading the score. Mirrors the orchestrated-flow fix (ENG-47558).
143
- *
144
- * No-op for any other module key. FACE_MATCH has no registered config mapper, so
145
- * injecting into the raw object (before `applyConfigMapper`) is safe.
146
- */
147
- function withFaceMatchProcessFlag(moduleKey, raw, sawAuthentication) {
148
- if (moduleKey !== "FACE_MATCH") return raw;
149
- return {
150
- ...raw,
151
- processFaceBeforeMatch: sawAuthentication
152
- };
153
- }
154
133
 
155
134
  //#endregion
156
135
  //#region src/modules/workflow/workflowServices.ts
@@ -348,30 +327,26 @@ const workflowMachine = setup({
348
327
  runChildModule
349
328
  },
350
329
  actions: {
351
- setLoadingResult: assign(({ context, event }) => {
330
+ setLoadingResult: assign(({ event }) => {
352
331
  const result = event.output;
353
332
  return {
354
333
  workflowConfig: result.workflowConfig,
355
334
  currentNode: result.currentNode,
356
335
  firstNode: result.firstNode,
357
- isInjectedNode: result.isInjectedNode,
358
- sawAuthentication: context.sawAuthentication || result.currentNode?.moduleKey === "AUTHENTICATION"
336
+ isInjectedNode: result.isInjectedNode
359
337
  };
360
338
  }),
361
- setNextNode: assign(({ context, event }) => {
339
+ setNextNode: assign(({ event }) => {
362
340
  const result = event.output;
363
341
  return {
364
342
  currentNode: result.nextNode,
365
- isInjectedNode: result.isInjectedNode,
366
- sawAuthentication: context.sawAuthentication || result.nextNode?.moduleKey === "AUTHENTICATION"
343
+ isInjectedNode: result.isInjectedNode
367
344
  };
368
345
  }),
369
- setCustomModuleResult: assign(({ context, event }) => {
370
- const nextNode = event.output;
346
+ setCustomModuleResult: assign(({ event }) => {
371
347
  return {
372
- currentNode: nextNode,
373
- isInjectedNode: false,
374
- sawAuthentication: context.sawAuthentication || nextNode?.moduleKey === "AUTHENTICATION"
348
+ currentNode: event.output,
349
+ isInjectedNode: false
375
350
  };
376
351
  }),
377
352
  setResolvedMachine: assign(({ event }) => ({ resolvedMachine: event.output })),
@@ -442,7 +417,6 @@ const workflowMachine = setup({
442
417
  isDesktop: input.isDesktop ?? true,
443
418
  isInjectedNode: false,
444
419
  isHomeContinueLoading: false,
445
- sawAuthentication: false,
446
420
  getFinishStatus: input.getFinishStatus ?? getFinishStatus
447
421
  }),
448
422
  states: {
@@ -510,10 +484,10 @@ const workflowMachine = setup({
510
484
  id: "currentModule",
511
485
  src: "runChildModule",
512
486
  input: ({ context }) => {
513
- const config = applyConfigMapper(context.currentNode?.moduleKey, withFaceMatchProcessFlag(context.currentNode?.moduleKey, {
487
+ const config = applyConfigMapper(context.currentNode?.moduleKey, {
514
488
  ...context.currentNode?.moduleConfiguration,
515
489
  ds: context.workflowConfig?.ds
516
- }, context.sawAuthentication), context.configMappers);
490
+ }, context.configMappers);
517
491
  return {
518
492
  machine: context.resolvedMachine,
519
493
  config
@@ -669,11 +643,11 @@ function deriveHomeScreen(snapshot) {
669
643
  * is invoked at the child-actor boundary in `workflowStateMachine` so all
670
644
  * surfaces agree.
671
645
  */
672
- function resolveCurrentModuleConfig(moduleKey, moduleConfiguration, ds, mappers, sawAuthentication) {
673
- return applyConfigMapper(moduleKey, withFaceMatchProcessFlag(moduleKey, {
646
+ function resolveCurrentModuleConfig(moduleKey, moduleConfiguration, ds, mappers) {
647
+ return applyConfigMapper(moduleKey, {
674
648
  ...moduleConfiguration ?? {},
675
649
  ds
676
- }, sawAuthentication), mappers);
650
+ }, mappers);
677
651
  }
678
652
  function mapState(snapshot) {
679
653
  const { context } = snapshot;
@@ -688,7 +662,7 @@ function mapState(snapshot) {
688
662
  status: "ready",
689
663
  workflowConfig: context.workflowConfig,
690
664
  currentNode: context.currentNode,
691
- config: resolveCurrentModuleConfig(context.currentNode?.moduleKey, context.currentNode?.moduleConfiguration, context.workflowConfig?.ds, context.configMappers, context.sawAuthentication),
665
+ config: resolveCurrentModuleConfig(context.currentNode?.moduleKey, context.currentNode?.moduleConfiguration, context.workflowConfig?.ds, context.configMappers),
692
666
  moduleState: childSnapshot ?? null,
693
667
  homeScreen
694
668
  };
@@ -747,7 +721,7 @@ function createApi({ actor, getSnapshot, trackElementClicked }) {
747
721
  getModuleConfig() {
748
722
  const snapshot = getSnapshot();
749
723
  if (snapshot.value !== "runningModule") return void 0;
750
- return resolveCurrentModuleConfig(snapshot.context.currentNode?.moduleKey, snapshot.context.currentNode?.moduleConfiguration, snapshot.context.workflowConfig?.ds, snapshot.context.configMappers, snapshot.context.sawAuthentication);
724
+ return resolveCurrentModuleConfig(snapshot.context.currentNode?.moduleKey, snapshot.context.currentNode?.moduleConfiguration, snapshot.context.workflowConfig?.ds, snapshot.context.configMappers);
751
725
  }
752
726
  };
753
727
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "2.1.0-rc.0",
3
+ "version": "2.1.0-rc.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"