@ekyc_qoobiss/qbs-ect-cmp 3.6.34 → 3.6.36
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/cjs/agreement-check_19.cjs.entry.js +60 -25
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +23 -3
- package/dist/collection/components/common/id-capture/id-capture.js +22 -2
- package/dist/collection/components/common/id-tilt/id-tilt.js +22 -2
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +23 -3
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +23 -3
- package/dist/collection/components/flow/process-id/process-id.js +13 -8
- package/dist/collection/helpers/Cameras.js +3 -3
- package/dist/esm/agreement-check_19.entry.js +60 -25
- package/dist/qbs-ect-cmp/{p-c50db7e7.entry.js → p-d0794c84.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +2 -1
- package/dist/types/components/common/id-capture/id-capture.d.ts +1 -0
- package/dist/types/components/common/id-tilt/id-tilt.d.ts +1 -0
- package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +2 -1
- package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +2 -1
- package/dist/types/components/flow/process-id/process-id.d.ts +1 -0
- package/dist/types/components.d.ts +5 -0
- package/dist/types/helpers/Cameras.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5008,7 +5008,7 @@ class Cameras {
|
|
|
5008
5008
|
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
5009
5009
|
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
5010
5010
|
for (const device of videoDevices) {
|
|
5011
|
-
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
|
|
5011
|
+
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo, false, false);
|
|
5012
5012
|
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
5013
5013
|
stream.getVideoTracks().forEach(track => {
|
|
5014
5014
|
var _a, _b;
|
|
@@ -5066,9 +5066,9 @@ class Cameras {
|
|
|
5066
5066
|
}
|
|
5067
5067
|
return allDevices;
|
|
5068
5068
|
}
|
|
5069
|
-
GetConstraints(selectedDeviceId, device, portrait = false) {
|
|
5069
|
+
GetConstraints(selectedDeviceId, device, portrait = false, audio = true) {
|
|
5070
5070
|
let constraints = {
|
|
5071
|
-
audio:
|
|
5071
|
+
audio: audio,
|
|
5072
5072
|
};
|
|
5073
5073
|
let mediaTrack = {
|
|
5074
5074
|
frameRate: 30,
|
|
@@ -5147,6 +5147,7 @@ const IdBackCapture = class {
|
|
|
5147
5147
|
registerInstance(this, hostRef);
|
|
5148
5148
|
this.eventPhotoCapture = createEvent(this, "photoIdBackCapture", 7);
|
|
5149
5149
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5150
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
5150
5151
|
this.photoIsReady = photos => {
|
|
5151
5152
|
//this.closeCamera();
|
|
5152
5153
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5214,16 +5215,21 @@ const IdBackCapture = class {
|
|
|
5214
5215
|
IDML5Detector.instance = null;
|
|
5215
5216
|
FaceML5Detector.instance = null;
|
|
5216
5217
|
}
|
|
5217
|
-
verificationFinished() {
|
|
5218
|
+
async verificationFinished() {
|
|
5218
5219
|
if (this.verified)
|
|
5219
5220
|
return;
|
|
5220
5221
|
this.verified = true;
|
|
5221
5222
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5222
5223
|
this.closeCamera();
|
|
5223
5224
|
this.showDemo = true;
|
|
5225
|
+
var loops = 0;
|
|
5224
5226
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5225
|
-
this.demoVideo.loop =
|
|
5226
|
-
|
|
5227
|
+
this.demoVideo.loop = false;
|
|
5228
|
+
while (loops < 7) {
|
|
5229
|
+
this.demoVideo.play();
|
|
5230
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5231
|
+
}
|
|
5232
|
+
this.eventTimeElapsed.emit();
|
|
5227
5233
|
}
|
|
5228
5234
|
async takePhoto() {
|
|
5229
5235
|
if (this.captureTaken)
|
|
@@ -5257,6 +5263,7 @@ const IdCapture = class {
|
|
|
5257
5263
|
registerInstance(this, hostRef);
|
|
5258
5264
|
this.eventPhotoCapture = createEvent(this, "photoIdCapture", 7);
|
|
5259
5265
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5266
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
5260
5267
|
this.photoIsReady = photos => {
|
|
5261
5268
|
//this.closeCamera();
|
|
5262
5269
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5335,9 +5342,14 @@ const IdCapture = class {
|
|
|
5335
5342
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5336
5343
|
this.closeCamera();
|
|
5337
5344
|
this.showDemo = true;
|
|
5345
|
+
var loops = 0;
|
|
5338
5346
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5339
|
-
this.demoVideo.loop =
|
|
5340
|
-
|
|
5347
|
+
this.demoVideo.loop = false;
|
|
5348
|
+
while (loops < 7) {
|
|
5349
|
+
this.demoVideo.play();
|
|
5350
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5351
|
+
}
|
|
5352
|
+
this.eventTimeElapsed.emit();
|
|
5341
5353
|
}
|
|
5342
5354
|
render() {
|
|
5343
5355
|
let cameraStyle;
|
|
@@ -5368,6 +5380,7 @@ const IdTilt = class {
|
|
|
5368
5380
|
registerInstance(this, hostRef);
|
|
5369
5381
|
this.eventPhotoCapture = createEvent(this, "photoTiltCapture", 7);
|
|
5370
5382
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5383
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
5371
5384
|
this.photoIsReady = photos => {
|
|
5372
5385
|
//this.closeCamera();
|
|
5373
5386
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -5446,9 +5459,14 @@ const IdTilt = class {
|
|
|
5446
5459
|
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5447
5460
|
this.closeCamera();
|
|
5448
5461
|
this.showDemo = true;
|
|
5462
|
+
var loops = 0;
|
|
5449
5463
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
5450
|
-
this.demoVideo.loop =
|
|
5451
|
-
|
|
5464
|
+
this.demoVideo.loop = false;
|
|
5465
|
+
while (loops < 7) {
|
|
5466
|
+
this.demoVideo.play();
|
|
5467
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5468
|
+
}
|
|
5469
|
+
this.eventTimeElapsed.emit();
|
|
5452
5470
|
}
|
|
5453
5471
|
render() {
|
|
5454
5472
|
let cameraStyle;
|
|
@@ -5537,7 +5555,7 @@ function v4(options, buf, offset) {
|
|
|
5537
5555
|
}
|
|
5538
5556
|
|
|
5539
5557
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5540
|
-
const version$1 = "3.6.
|
|
5558
|
+
const version$1 = "3.6.36";
|
|
5541
5559
|
const description = "Person Identification Component";
|
|
5542
5560
|
const main = "./dist/index.cjs.js";
|
|
5543
5561
|
const module = "./dist/index.js";
|
|
@@ -8936,6 +8954,9 @@ const ProcessId = class {
|
|
|
8936
8954
|
}
|
|
8937
8955
|
componentWillLoad() {
|
|
8938
8956
|
this.captureRetryCount = 0;
|
|
8957
|
+
this.initFlow();
|
|
8958
|
+
}
|
|
8959
|
+
initFlow() {
|
|
8939
8960
|
this.flow = {
|
|
8940
8961
|
front: {
|
|
8941
8962
|
photoDone: false,
|
|
@@ -9037,11 +9058,11 @@ const ProcessId = class {
|
|
|
9037
9058
|
let frontRec = new File([idRecording], this.flow.front.recName + mimeType.extension, { type: mimeType.type });
|
|
9038
9059
|
this.flow.front.recordingDone = await this.uploadRecording(this.flow.front.recType, frontRec);
|
|
9039
9060
|
}
|
|
9040
|
-
else if (this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9061
|
+
else if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9041
9062
|
let backRec = new File([idRecording], this.flow.back.recName + mimeType.extension, { type: mimeType.type });
|
|
9042
9063
|
this.flow.back.recordingDone = await this.uploadRecording(this.flow.back.recType, backRec);
|
|
9043
9064
|
}
|
|
9044
|
-
else if (this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9065
|
+
else if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9045
9066
|
let tiltRec = new File([idRecording], this.flow.tilt.recName + mimeType.extension, { type: mimeType.type });
|
|
9046
9067
|
this.flow.tilt.recordingDone = await this.uploadRecording(this.flow.tilt.recType, tiltRec);
|
|
9047
9068
|
}
|
|
@@ -9086,17 +9107,19 @@ const ProcessId = class {
|
|
|
9086
9107
|
restart = true;
|
|
9087
9108
|
}
|
|
9088
9109
|
if (restart) {
|
|
9089
|
-
this.
|
|
9110
|
+
this.initFlow();
|
|
9111
|
+
this.showInvalid = true;
|
|
9112
|
+
return;
|
|
9090
9113
|
}
|
|
9091
|
-
if (this.captureStep == IdCaptureFlowStatus.IdFront
|
|
9114
|
+
if (this.captureStep == IdCaptureFlowStatus.IdFront) {
|
|
9092
9115
|
this.flow.front.photoDone = false;
|
|
9093
9116
|
this.flow.front.recordingDone = false;
|
|
9094
9117
|
}
|
|
9095
|
-
if (this.captureStep == IdCaptureFlowStatus.IdBack
|
|
9118
|
+
if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack) {
|
|
9096
9119
|
this.flow.back.photoDone = false;
|
|
9097
9120
|
this.flow.back.recordingDone = false;
|
|
9098
9121
|
}
|
|
9099
|
-
if (this.captureStep == IdCaptureFlowStatus.Tilt
|
|
9122
|
+
if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt) {
|
|
9100
9123
|
this.flow.tilt.photoDone = true;
|
|
9101
9124
|
this.flow.tilt.recordingDone = false;
|
|
9102
9125
|
}
|
|
@@ -9119,7 +9142,7 @@ const ProcessId = class {
|
|
|
9119
9142
|
return;
|
|
9120
9143
|
}
|
|
9121
9144
|
}
|
|
9122
|
-
if (this.captureStep == IdCaptureFlowStatus.IdBack && state.hasIdBack) {
|
|
9145
|
+
if (this.flow.back && this.captureStep == IdCaptureFlowStatus.IdBack && state.hasIdBack) {
|
|
9123
9146
|
if (this.flow.back.photoDone && this.flow.back.recordingDone) {
|
|
9124
9147
|
if (state.hasIdTilt) {
|
|
9125
9148
|
this.captureStep = IdCaptureFlowStatus.Tilt;
|
|
@@ -9132,7 +9155,7 @@ const ProcessId = class {
|
|
|
9132
9155
|
return;
|
|
9133
9156
|
}
|
|
9134
9157
|
}
|
|
9135
|
-
if (this.captureStep == IdCaptureFlowStatus.Tilt && state.hasIdTilt) {
|
|
9158
|
+
if (this.flow.tilt && this.captureStep == IdCaptureFlowStatus.Tilt && state.hasIdTilt) {
|
|
9136
9159
|
if (this.flow.tilt.photoDone && this.flow.tilt.recordingDone) {
|
|
9137
9160
|
this.captureStep = IdCaptureFlowStatus.End;
|
|
9138
9161
|
}
|
|
@@ -9195,6 +9218,7 @@ const SelfieCapture = class {
|
|
|
9195
9218
|
registerInstance(this, hostRef);
|
|
9196
9219
|
this.eventPhotoCapture = createEvent(this, "photoSelfieCapture", 7);
|
|
9197
9220
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
9221
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
9198
9222
|
this.photoIsReady = photos => {
|
|
9199
9223
|
//this.closeCamera();
|
|
9200
9224
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -9271,16 +9295,21 @@ const SelfieCapture = class {
|
|
|
9271
9295
|
this.photoIsReady(res);
|
|
9272
9296
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
9273
9297
|
}
|
|
9274
|
-
verificationFinished() {
|
|
9298
|
+
async verificationFinished() {
|
|
9275
9299
|
if (this.verified)
|
|
9276
9300
|
return;
|
|
9277
9301
|
this.verified = true;
|
|
9278
9302
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9279
9303
|
this.closeCamera();
|
|
9280
9304
|
this.demoEnded = false;
|
|
9305
|
+
var loops = 0;
|
|
9281
9306
|
this.demoVideo.src = this.uploadingLink;
|
|
9282
|
-
this.demoVideo.loop =
|
|
9283
|
-
|
|
9307
|
+
this.demoVideo.loop = false;
|
|
9308
|
+
while (loops < 7) {
|
|
9309
|
+
this.demoVideo.play();
|
|
9310
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9311
|
+
}
|
|
9312
|
+
this.eventTimeElapsed.emit();
|
|
9284
9313
|
}
|
|
9285
9314
|
render() {
|
|
9286
9315
|
let cameraStyle;
|
|
@@ -9311,6 +9340,7 @@ const SelfieTilt = class {
|
|
|
9311
9340
|
registerInstance(this, hostRef);
|
|
9312
9341
|
this.eventPhotoCapture = createEvent(this, "photoSelfieTiltCapture", 7);
|
|
9313
9342
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
9343
|
+
this.eventTimeElapsed = createEvent(this, "timeElapsed", 7);
|
|
9314
9344
|
this.photoIsReady = photos => {
|
|
9315
9345
|
//this.closeCamera();
|
|
9316
9346
|
this.eventPhotoCapture.emit(photos);
|
|
@@ -9389,16 +9419,21 @@ const SelfieTilt = class {
|
|
|
9389
9419
|
this.photoIsReady(res);
|
|
9390
9420
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Finalized);
|
|
9391
9421
|
}
|
|
9392
|
-
verificationFinished() {
|
|
9422
|
+
async verificationFinished() {
|
|
9393
9423
|
if (this.verified)
|
|
9394
9424
|
return;
|
|
9395
9425
|
this.verified = true;
|
|
9396
9426
|
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9397
9427
|
this.closeCamera();
|
|
9398
9428
|
this.demoEnded = false;
|
|
9429
|
+
var loops = 0;
|
|
9399
9430
|
this.demoVideo.src = this.uploadingLink;
|
|
9400
|
-
this.demoVideo.loop =
|
|
9401
|
-
|
|
9431
|
+
this.demoVideo.loop = false;
|
|
9432
|
+
while (loops < 7) {
|
|
9433
|
+
this.demoVideo.play();
|
|
9434
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9435
|
+
}
|
|
9436
|
+
this.eventTimeElapsed.emit();
|
|
9402
9437
|
}
|
|
9403
9438
|
render() {
|
|
9404
9439
|
let cameraStyle;
|