@ekyc_qoobiss/qbs-ect-cmp 1.5.25 → 1.5.27

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.
@@ -516,6 +516,14 @@ class Events {
516
516
  static init(element) {
517
517
  this.cameraModule = element;
518
518
  }
519
+ static flowStarted() {
520
+ this.cameraModule.dispatchEvent(new CustomEvent('ect-started', {
521
+ detail: {},
522
+ bubbles: true,
523
+ cancelable: true,
524
+ composed: true
525
+ }));
526
+ }
519
527
  static flowCompleted() {
520
528
  this.cameraModule.dispatchEvent(new CustomEvent('ect-completed', {
521
529
  detail: {},
@@ -5886,6 +5894,10 @@ const LandingValidation = class {
5886
5894
  await new Promise(f => setTimeout(f, 500));
5887
5895
  await this.initRequest();
5888
5896
  }
5897
+ componentDidLoad() {
5898
+ Events.init(window);
5899
+ Events.flowStarted();
5900
+ }
5889
5901
  async initRequest() {
5890
5902
  if (state.hasIdBack) {
5891
5903
  this.warningText = LandingValues.WarningMd;
@@ -6,6 +6,7 @@ import idSvg from '../../assets/landing/id.svg';
6
6
  import idDevice from '../../assets/landing/device.svg';
7
7
  import idValidation from '../../assets/landing/validation.svg';
8
8
  import store from '../../helpers/store';
9
+ import Events from '../../helpers/Events';
9
10
  export class LandingValidation {
10
11
  constructor() {
11
12
  this.device = undefined;
@@ -15,6 +16,10 @@ export class LandingValidation {
15
16
  await new Promise(f => setTimeout(f, 500));
16
17
  await this.initRequest();
17
18
  }
19
+ componentDidLoad() {
20
+ Events.init(window);
21
+ Events.flowStarted();
22
+ }
18
23
  async initRequest() {
19
24
  if (store.hasIdBack) {
20
25
  this.warningText = LandingValues.WarningMd;
@@ -2,6 +2,14 @@ export default class Events {
2
2
  static init(element) {
3
3
  this.cameraModule = element;
4
4
  }
5
+ static flowStarted() {
6
+ this.cameraModule.dispatchEvent(new CustomEvent('ect-started', {
7
+ detail: {},
8
+ bubbles: true,
9
+ cancelable: true,
10
+ composed: true
11
+ }));
12
+ }
5
13
  static flowCompleted() {
6
14
  this.cameraModule.dispatchEvent(new CustomEvent('ect-completed', {
7
15
  detail: {},
@@ -512,6 +512,14 @@ class Events {
512
512
  static init(element) {
513
513
  this.cameraModule = element;
514
514
  }
515
+ static flowStarted() {
516
+ this.cameraModule.dispatchEvent(new CustomEvent('ect-started', {
517
+ detail: {},
518
+ bubbles: true,
519
+ cancelable: true,
520
+ composed: true
521
+ }));
522
+ }
515
523
  static flowCompleted() {
516
524
  this.cameraModule.dispatchEvent(new CustomEvent('ect-completed', {
517
525
  detail: {},
@@ -5882,6 +5890,10 @@ const LandingValidation = class {
5882
5890
  await new Promise(f => setTimeout(f, 500));
5883
5891
  await this.initRequest();
5884
5892
  }
5893
+ componentDidLoad() {
5894
+ Events.init(window);
5895
+ Events.flowStarted();
5896
+ }
5885
5897
  async initRequest() {
5886
5898
  if (state.hasIdBack) {
5887
5899
  this.warningText = LandingValues.WarningMd;