@ekyc_qoobiss/qbs-ect-cmp 3.6.2 → 3.6.3
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_18.cjs.entry.js +12 -11
- package/dist/collection/components/flow/id-single-side/id-single-side.js +4 -0
- package/dist/collection/helpers/Cameras.js +3 -2
- package/dist/collection/helpers/Stream.js +4 -8
- package/dist/esm/agreement-check_18.entry.js +12 -11
- package/dist/qbs-ect-cmp/{p-32177442.entry.js → p-11c604f3.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/Stream.d.ts +0 -1
- package/package.json +1 -1
|
@@ -5322,17 +5322,13 @@ class Stream {
|
|
|
5322
5322
|
this.recordedChunks.push(event.data);
|
|
5323
5323
|
};
|
|
5324
5324
|
this.mediaRecorder.onstop = _e => {
|
|
5325
|
-
|
|
5326
|
-
|
|
5325
|
+
var blob = new Blob(this.recordedChunks, {
|
|
5326
|
+
type: options.mimeType.split(';')[0],
|
|
5327
|
+
});
|
|
5328
|
+
this.callbackRecordingReady(blob);
|
|
5327
5329
|
};
|
|
5328
5330
|
this.mediaRecorder.start(); // Start recording, and dump data every second
|
|
5329
5331
|
}
|
|
5330
|
-
async saveVideoRecording(videoTosave, mimeType) {
|
|
5331
|
-
var blob = new Blob(videoTosave, {
|
|
5332
|
-
type: mimeType.split(';')[0],
|
|
5333
|
-
});
|
|
5334
|
-
this.callbackRecordingReady(blob);
|
|
5335
|
-
}
|
|
5336
5332
|
updateCanvasSize(canvas) {
|
|
5337
5333
|
this.videoSize = { width: this.videoElement.videoWidth, height: this.videoElement.videoHeight };
|
|
5338
5334
|
canvas.width = this.videoSize.width;
|
|
@@ -5784,14 +5780,15 @@ class Cameras {
|
|
|
5784
5780
|
mediaTrack.width = 1280;
|
|
5785
5781
|
}
|
|
5786
5782
|
else {
|
|
5787
|
-
mediaTrack.facingMode = 'user';
|
|
5788
5783
|
if (portrait) {
|
|
5784
|
+
mediaTrack.facingMode = 'user';
|
|
5789
5785
|
mediaTrack.width = 1280;
|
|
5790
5786
|
mediaTrack.height = 720;
|
|
5791
5787
|
}
|
|
5792
5788
|
else {
|
|
5793
5789
|
mediaTrack.facingMode = 'environment';
|
|
5794
|
-
|
|
5790
|
+
mediaTrack.width = 1280;
|
|
5791
|
+
mediaTrack.height = 720;
|
|
5795
5792
|
}
|
|
5796
5793
|
}
|
|
5797
5794
|
constraints.video = mediaTrack;
|
|
@@ -6296,6 +6293,8 @@ const IdSingleSide = class {
|
|
|
6296
6293
|
this.errorMessage = 'timeout';
|
|
6297
6294
|
}
|
|
6298
6295
|
async captureIdImage(event) {
|
|
6296
|
+
console.log('photoIdCapture');
|
|
6297
|
+
console.log(event);
|
|
6299
6298
|
let idPhoto = event.detail;
|
|
6300
6299
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
6301
6300
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
@@ -6316,6 +6315,8 @@ const IdSingleSide = class {
|
|
|
6316
6315
|
await this.endFlow();
|
|
6317
6316
|
}
|
|
6318
6317
|
async capturedIdRecording(event) {
|
|
6318
|
+
console.log('recordingIdCapture');
|
|
6319
|
+
console.log(event);
|
|
6319
6320
|
let idRecording = event.detail;
|
|
6320
6321
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6321
6322
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
@@ -6468,7 +6469,7 @@ function v4(options, buf, offset) {
|
|
|
6468
6469
|
}
|
|
6469
6470
|
|
|
6470
6471
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6471
|
-
const version$1 = "3.6.
|
|
6472
|
+
const version$1 = "3.6.3";
|
|
6472
6473
|
const description = "Person Identification Component";
|
|
6473
6474
|
const main = "./dist/index.cjs.js";
|
|
6474
6475
|
const module$1 = "./dist/index.js";
|
|
@@ -36,6 +36,8 @@ export class IdSingleSide {
|
|
|
36
36
|
this.errorMessage = 'timeout';
|
|
37
37
|
}
|
|
38
38
|
async captureIdImage(event) {
|
|
39
|
+
console.log('photoIdCapture');
|
|
40
|
+
console.log(event);
|
|
39
41
|
let idPhoto = event.detail;
|
|
40
42
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
41
43
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
@@ -56,6 +58,8 @@ export class IdSingleSide {
|
|
|
56
58
|
await this.endFlow();
|
|
57
59
|
}
|
|
58
60
|
async capturedIdRecording(event) {
|
|
61
|
+
console.log('recordingIdCapture');
|
|
62
|
+
console.log(event);
|
|
59
63
|
let idRecording = event.detail;
|
|
60
64
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
61
65
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
@@ -103,14 +103,15 @@ export class Cameras {
|
|
|
103
103
|
mediaTrack.width = 1280;
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
|
-
mediaTrack.facingMode = 'user';
|
|
107
106
|
if (portrait) {
|
|
107
|
+
mediaTrack.facingMode = 'user';
|
|
108
108
|
mediaTrack.width = 1280;
|
|
109
109
|
mediaTrack.height = 720;
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
112
|
mediaTrack.facingMode = 'environment';
|
|
113
|
-
|
|
113
|
+
mediaTrack.width = 1280;
|
|
114
|
+
mediaTrack.height = 720;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
constraints.video = mediaTrack;
|
|
@@ -132,17 +132,13 @@ export class Stream {
|
|
|
132
132
|
this.recordedChunks.push(event.data);
|
|
133
133
|
};
|
|
134
134
|
this.mediaRecorder.onstop = _e => {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
var blob = new Blob(this.recordedChunks, {
|
|
136
|
+
type: options.mimeType.split(';')[0],
|
|
137
|
+
});
|
|
138
|
+
this.callbackRecordingReady(blob);
|
|
137
139
|
};
|
|
138
140
|
this.mediaRecorder.start(); // Start recording, and dump data every second
|
|
139
141
|
}
|
|
140
|
-
async saveVideoRecording(videoTosave, mimeType) {
|
|
141
|
-
var blob = new Blob(videoTosave, {
|
|
142
|
-
type: mimeType.split(';')[0],
|
|
143
|
-
});
|
|
144
|
-
this.callbackRecordingReady(blob);
|
|
145
|
-
}
|
|
146
142
|
updateCanvasSize(canvas) {
|
|
147
143
|
this.videoSize = { width: this.videoElement.videoWidth, height: this.videoElement.videoHeight };
|
|
148
144
|
canvas.width = this.videoSize.width;
|
|
@@ -5318,17 +5318,13 @@ class Stream {
|
|
|
5318
5318
|
this.recordedChunks.push(event.data);
|
|
5319
5319
|
};
|
|
5320
5320
|
this.mediaRecorder.onstop = _e => {
|
|
5321
|
-
|
|
5322
|
-
|
|
5321
|
+
var blob = new Blob(this.recordedChunks, {
|
|
5322
|
+
type: options.mimeType.split(';')[0],
|
|
5323
|
+
});
|
|
5324
|
+
this.callbackRecordingReady(blob);
|
|
5323
5325
|
};
|
|
5324
5326
|
this.mediaRecorder.start(); // Start recording, and dump data every second
|
|
5325
5327
|
}
|
|
5326
|
-
async saveVideoRecording(videoTosave, mimeType) {
|
|
5327
|
-
var blob = new Blob(videoTosave, {
|
|
5328
|
-
type: mimeType.split(';')[0],
|
|
5329
|
-
});
|
|
5330
|
-
this.callbackRecordingReady(blob);
|
|
5331
|
-
}
|
|
5332
5328
|
updateCanvasSize(canvas) {
|
|
5333
5329
|
this.videoSize = { width: this.videoElement.videoWidth, height: this.videoElement.videoHeight };
|
|
5334
5330
|
canvas.width = this.videoSize.width;
|
|
@@ -5780,14 +5776,15 @@ class Cameras {
|
|
|
5780
5776
|
mediaTrack.width = 1280;
|
|
5781
5777
|
}
|
|
5782
5778
|
else {
|
|
5783
|
-
mediaTrack.facingMode = 'user';
|
|
5784
5779
|
if (portrait) {
|
|
5780
|
+
mediaTrack.facingMode = 'user';
|
|
5785
5781
|
mediaTrack.width = 1280;
|
|
5786
5782
|
mediaTrack.height = 720;
|
|
5787
5783
|
}
|
|
5788
5784
|
else {
|
|
5789
5785
|
mediaTrack.facingMode = 'environment';
|
|
5790
|
-
|
|
5786
|
+
mediaTrack.width = 1280;
|
|
5787
|
+
mediaTrack.height = 720;
|
|
5791
5788
|
}
|
|
5792
5789
|
}
|
|
5793
5790
|
constraints.video = mediaTrack;
|
|
@@ -6292,6 +6289,8 @@ const IdSingleSide = class {
|
|
|
6292
6289
|
this.errorMessage = 'timeout';
|
|
6293
6290
|
}
|
|
6294
6291
|
async captureIdImage(event) {
|
|
6292
|
+
console.log('photoIdCapture');
|
|
6293
|
+
console.log(event);
|
|
6295
6294
|
let idPhoto = event.detail;
|
|
6296
6295
|
if (idPhoto.length == 0 || idPhoto.size == 0) {
|
|
6297
6296
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty id photo', blobData: idPhoto }, getLogMessage());
|
|
@@ -6312,6 +6311,8 @@ const IdSingleSide = class {
|
|
|
6312
6311
|
await this.endFlow();
|
|
6313
6312
|
}
|
|
6314
6313
|
async capturedIdRecording(event) {
|
|
6314
|
+
console.log('recordingIdCapture');
|
|
6315
|
+
console.log(event);
|
|
6315
6316
|
let idRecording = event.detail;
|
|
6316
6317
|
if (idRecording.length == 0 || idRecording.size == 0) {
|
|
6317
6318
|
await this.baseComponent.apiCall.AddLog({ message: 'Empty ID recording', blobData: idRecording }, getLogMessage());
|
|
@@ -6464,7 +6465,7 @@ function v4(options, buf, offset) {
|
|
|
6464
6465
|
}
|
|
6465
6466
|
|
|
6466
6467
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6467
|
-
const version$1 = "3.6.
|
|
6468
|
+
const version$1 = "3.6.3";
|
|
6468
6469
|
const description = "Person Identification Component";
|
|
6469
6470
|
const main = "./dist/index.cjs.js";
|
|
6470
6471
|
const module = "./dist/index.js";
|