@ekyc_qoobiss/qbs-ect-cmp 3.6.15 → 3.6.17

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 (33) hide show
  1. package/dist/cjs/agreement-check_19.cjs.entry.js +316 -701
  2. package/dist/cjs/{index-79f82518.js → index-41696e0e.js} +6 -1
  3. package/dist/cjs/loader-dots.cjs.entry.js +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/qbs-ect-cmp.cjs.js +2 -2
  6. package/dist/cjs/random-actions.cjs.entry.js +22 -0
  7. package/dist/cjs/store-4bf93725.js +415 -0
  8. package/dist/collection/collection-manifest.json +1 -0
  9. package/dist/collection/components/common/agreement-check/agreement-check.js +21 -2
  10. package/dist/collection/components/common/random-actions/random-actions.css +0 -0
  11. package/dist/collection/components/common/random-actions/random-actions.js +20 -0
  12. package/dist/collection/components/flow/process-id/process-id.js +3 -0
  13. package/dist/collection/components/flow/user-liveness/user-liveness.js +13 -15
  14. package/dist/collection/components/identification-component/identification-component.css +7 -0
  15. package/dist/esm/agreement-check_19.entry.js +30 -415
  16. package/dist/esm/{index-9d69e511.js → index-cf54a432.js} +7 -2
  17. package/dist/esm/loader-dots.entry.js +1 -1
  18. package/dist/esm/loader.js +3 -3
  19. package/dist/esm/qbs-ect-cmp.js +3 -3
  20. package/dist/esm/random-actions.entry.js +18 -0
  21. package/dist/esm/store-b76678da.js +399 -0
  22. package/dist/qbs-ect-cmp/{p-4c8e922b.entry.js → p-054dc5b3.entry.js} +1 -1
  23. package/dist/qbs-ect-cmp/p-0a37620f.entry.js +1 -0
  24. package/dist/qbs-ect-cmp/p-27abb3e6.js +1 -0
  25. package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
  26. package/dist/qbs-ect-cmp/{p-a85dd6fc.entry.js → p-b828c183.entry.js} +22 -22
  27. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  28. package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
  29. package/dist/types/components/common/random-actions/random-actions.d.ts +7 -0
  30. package/dist/types/components/flow/user-liveness/user-liveness.d.ts +2 -2
  31. package/dist/types/components.d.ts +13 -0
  32. package/package.json +1 -1
  33. package/dist/qbs-ect-cmp/p-06e42b28.js +0 -2
@@ -69,7 +69,7 @@ export class UserLiveness {
69
69
  }
70
70
  try {
71
71
  var uploadPhoto = new File([selfiePhoto], this.flow.front.fileName, { type: 'image/png' });
72
- await this.uploadPhoto(uploadPhoto);
72
+ await this.uploadPhoto(uploadPhoto, this.flow.front.photoType);
73
73
  }
74
74
  catch (e) {
75
75
  this.apiErrorEvent.emit(e);
@@ -87,16 +87,15 @@ export class UserLiveness {
87
87
  return;
88
88
  }
89
89
  let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
90
- let currentFlow;
91
- if (this.captureStep == SelfieFlowStatus.Selfie) {
92
- currentFlow = this.flow.front;
93
- }
94
- if (this.captureStep == SelfieFlowStatus.Gesture) {
95
- currentFlow = this.flow.tilt;
96
- }
97
90
  try {
98
- let uploadRec = new File([selfieRecording], currentFlow.recName + mimeType.extension, { type: mimeType.type });
99
- currentFlow.recordingDone = await this.uploadRecording(uploadRec);
91
+ if (this.captureStep == SelfieFlowStatus.Selfie) {
92
+ let uploadRec = new File([selfieRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
93
+ this.flow.front.recordingDone = await this.uploadRecording(uploadRec, this.flow.front.recType);
94
+ }
95
+ if (this.captureStep == SelfieFlowStatus.Gesture) {
96
+ let uploadRec = new File([selfieRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
97
+ this.flow.tilt.recordingDone = await this.uploadRecording(uploadRec, this.flow.tilt.recType);
98
+ }
100
99
  await this.endFlow();
101
100
  }
102
101
  catch (e) {
@@ -110,17 +109,16 @@ export class UserLiveness {
110
109
  }
111
110
  }
112
111
  async verificationFinished(_event) {
113
- this.captureStep = SelfieFlowStatus.End;
114
112
  await this.endFlow();
115
113
  }
116
114
  async disconnectedCallback() {
117
115
  await this.baseComponent.finalize();
118
116
  }
119
- async uploadPhoto(photoFile) {
117
+ async uploadPhoto(photoFile, photoType) {
120
118
  if (this.flow.front.photoDone) {
121
119
  return;
122
120
  }
123
- this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, 'Selfie', photoFile);
121
+ this.flow.front.photoDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, photoType, photoFile);
124
122
  if (this.flow.front.photoDone) {
125
123
  await this.endFlow();
126
124
  }
@@ -128,8 +126,8 @@ export class UserLiveness {
128
126
  this.triggerErrorFlow();
129
127
  }
130
128
  }
131
- async uploadRecording(uploadRec) {
132
- let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, 'SelfieVideo', uploadRec);
129
+ async uploadRecording(uploadRec, recType) {
130
+ let uplodDone = await this.baseComponent.apiCall.UploadFileForRequestB64(store.requestId, recType, uploadRec);
133
131
  if (uplodDone) {
134
132
  return true;
135
133
  }
@@ -770,6 +770,13 @@ a {
770
770
  overflow-y: auto;
771
771
  }
772
772
 
773
+ .scroll-full {
774
+ margin: 4px, 4px;
775
+ padding: 4px;
776
+ overflow-x: hidden;
777
+ overflow-y: auto;
778
+ }
779
+
773
780
  .video-demo {
774
781
  z-index: 0;
775
782
  width: 100%;