@ekyc_qoobiss/qbs-ect-cmp 3.5.6 → 3.5.8

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.
@@ -408,6 +408,7 @@ onChange('phoneValidation', value => {
408
408
 
409
409
  var FlowSteps;
410
410
  (function (FlowSteps) {
411
+ FlowSteps[FlowSteps["ComponentLoaded"] = 'component-loaded'] = "ComponentLoaded";
411
412
  FlowSteps[FlowSteps["MobileRedirect"] = 'mobile-redirect'] = "MobileRedirect";
412
413
  FlowSteps[FlowSteps["Landing"] = 'landing'] = "Landing";
413
414
  FlowSteps[FlowSteps["Agreements"] = 'agreements'] = "Agreements";
@@ -2700,7 +2701,7 @@ class FaceML5Detector {
2700
2701
  // this.validFaceFoundAgain = true;
2701
2702
  // //this.stream.changeFacePose();
2702
2703
  // }
2703
- if (this.requestedFacePose) {
2704
+ if (this.requestedFacePose !== null) {
2704
2705
  await delay(3000);
2705
2706
  this.validFacePose = true;
2706
2707
  this.validFaceFoundAgain = true;
@@ -6437,7 +6438,7 @@ function v4(options, buf, offset) {
6437
6438
  }
6438
6439
 
6439
6440
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6440
- const version$1 = "3.5.6";
6441
+ const version$1 = "3.5.8";
6441
6442
  const description = "Person Identification Component";
6442
6443
  const main = "./dist/index.cjs.js";
6443
6444
  const module$1 = "./dist/index.js";
@@ -6624,6 +6625,7 @@ const IdentificationComponent = class {
6624
6625
  }
6625
6626
  this.baseComponent = new BaseComponent(null);
6626
6627
  this.baseComponent.setErrorCallback(this.apiErrorEmitter);
6628
+ this.baseComponent.logStep(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
6627
6629
  if (state.debug)
6628
6630
  this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
6629
6631
  if (this.token) {
@@ -6729,6 +6731,9 @@ const IdentificationComponent = class {
6729
6731
  }
6730
6732
  ML5.getInstance();
6731
6733
  }
6734
+ disconnectedCallback() {
6735
+ this.baseComponent.finalize();
6736
+ }
6732
6737
  render() {
6733
6738
  let currentBlock = index.h("div", null);
6734
6739
  if (state.device.isMobile || state.environment == 'DEMO') {
@@ -9,6 +9,7 @@ import packageJson from '../../../package.json';
9
9
  import { getLogMessage } from '../../utils/utils';
10
10
  import { BaseComponent } from '../base-component';
11
11
  import { Browser } from '../../models/IDevice';
12
+ import { FlowMoments, FlowSteps } from '../../models/FlowSteps';
12
13
  export class IdentificationComponent {
13
14
  async onTokenChange(newValue, _oldValue) {
14
15
  if (store.debug)
@@ -125,6 +126,7 @@ export class IdentificationComponent {
125
126
  }
126
127
  this.baseComponent = new BaseComponent(null);
127
128
  this.baseComponent.setErrorCallback(this.apiErrorEmitter);
129
+ this.baseComponent.logStep(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
128
130
  if (store.debug)
129
131
  this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
130
132
  if (this.token) {
@@ -230,6 +232,9 @@ export class IdentificationComponent {
230
232
  }
231
233
  ML5.getInstance();
232
234
  }
235
+ disconnectedCallback() {
236
+ this.baseComponent.finalize();
237
+ }
233
238
  render() {
234
239
  let currentBlock = h("div", null);
235
240
  if (store.device.isMobile || store.environment == 'DEMO') {
@@ -207,7 +207,7 @@ export class FaceML5Detector {
207
207
  // this.validFaceFoundAgain = true;
208
208
  // //this.stream.changeFacePose();
209
209
  // }
210
- if (this.requestedFacePose) {
210
+ if (this.requestedFacePose !== null) {
211
211
  await delay(3000);
212
212
  this.validFacePose = true;
213
213
  this.validFaceFoundAgain = true;
@@ -1,5 +1,6 @@
1
1
  export var FlowSteps;
2
2
  (function (FlowSteps) {
3
+ FlowSteps[FlowSteps["ComponentLoaded"] = 'component-loaded'] = "ComponentLoaded";
3
4
  FlowSteps[FlowSteps["MobileRedirect"] = 'mobile-redirect'] = "MobileRedirect";
4
5
  FlowSteps[FlowSteps["Landing"] = 'landing'] = "Landing";
5
6
  FlowSteps[FlowSteps["Agreements"] = 'agreements'] = "Agreements";
@@ -404,6 +404,7 @@ onChange('phoneValidation', value => {
404
404
 
405
405
  var FlowSteps;
406
406
  (function (FlowSteps) {
407
+ FlowSteps[FlowSteps["ComponentLoaded"] = 'component-loaded'] = "ComponentLoaded";
407
408
  FlowSteps[FlowSteps["MobileRedirect"] = 'mobile-redirect'] = "MobileRedirect";
408
409
  FlowSteps[FlowSteps["Landing"] = 'landing'] = "Landing";
409
410
  FlowSteps[FlowSteps["Agreements"] = 'agreements'] = "Agreements";
@@ -2696,7 +2697,7 @@ class FaceML5Detector {
2696
2697
  // this.validFaceFoundAgain = true;
2697
2698
  // //this.stream.changeFacePose();
2698
2699
  // }
2699
- if (this.requestedFacePose) {
2700
+ if (this.requestedFacePose !== null) {
2700
2701
  await delay(3000);
2701
2702
  this.validFacePose = true;
2702
2703
  this.validFaceFoundAgain = true;
@@ -6433,7 +6434,7 @@ function v4(options, buf, offset) {
6433
6434
  }
6434
6435
 
6435
6436
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6436
- const version$1 = "3.5.6";
6437
+ const version$1 = "3.5.8";
6437
6438
  const description = "Person Identification Component";
6438
6439
  const main = "./dist/index.cjs.js";
6439
6440
  const module = "./dist/index.js";
@@ -6620,6 +6621,7 @@ const IdentificationComponent = class {
6620
6621
  }
6621
6622
  this.baseComponent = new BaseComponent(null);
6622
6623
  this.baseComponent.setErrorCallback(this.apiErrorEmitter);
6624
+ this.baseComponent.logStep(FlowSteps.ComponentLoaded, FlowMoments.Initialized);
6623
6625
  if (state.debug)
6624
6626
  this.logInit = getLogMessage(this.order_id, this.redirect_id, this.token);
6625
6627
  if (this.token) {
@@ -6725,6 +6727,9 @@ const IdentificationComponent = class {
6725
6727
  }
6726
6728
  ML5.getInstance();
6727
6729
  }
6730
+ disconnectedCallback() {
6731
+ this.baseComponent.finalize();
6732
+ }
6728
6733
  render() {
6729
6734
  let currentBlock = h("div", null);
6730
6735
  if (state.device.isMobile || state.environment == 'DEMO') {