@ekyc_qoobiss/qbs-ect-cmp 3.5.18 → 3.5.20

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.
@@ -6438,7 +6438,7 @@ function v4(options, buf, offset) {
6438
6438
  }
6439
6439
 
6440
6440
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6441
- const version$1 = "3.5.18";
6441
+ const version$1 = "3.5.20";
6442
6442
  const description = "Person Identification Component";
6443
6443
  const main = "./dist/index.cjs.js";
6444
6444
  const module$1 = "./dist/index.js";
@@ -6530,7 +6530,7 @@ const IdentificationComponent = class {
6530
6530
  state.requestId = newValue;
6531
6531
  state.initialised = false;
6532
6532
  await this.initializeRequest();
6533
- if (state.flowStatus != FlowStatus.LANDING) {
6533
+ if (state.flowStatus != FlowStatus.LANDING && state.flowStatus != FlowStatus.NONE) {
6534
6534
  state.flowStatus = FlowStatus.LANDING;
6535
6535
  }
6536
6536
  }
@@ -6609,6 +6609,7 @@ const IdentificationComponent = class {
6609
6609
  constructor(hostRef) {
6610
6610
  index.registerInstance(this, hostRef);
6611
6611
  this.logInit = {};
6612
+ this.flowStatusToSet = FlowStatus.NONE;
6612
6613
  this.token = undefined;
6613
6614
  this.order_id = undefined;
6614
6615
  this.api_url = undefined;
@@ -6663,7 +6664,6 @@ const IdentificationComponent = class {
6663
6664
  if (phoneVal && phoneVal.toLowerCase() == 'true') {
6664
6665
  state.phoneValidation = true;
6665
6666
  }
6666
- var flowStatusToSet = null;
6667
6667
  const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
6668
6668
  if (this.order_id && this.order_id != '') {
6669
6669
  state.requestId = this.order_id;
@@ -6672,7 +6672,7 @@ const IdentificationComponent = class {
6672
6672
  if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
6673
6673
  if (state.debug)
6674
6674
  console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
6675
- flowStatusToSet = FlowStatus.LANDING;
6675
+ this.flowStatusToSet = FlowStatus.LANDING;
6676
6676
  state.initialised = false;
6677
6677
  }
6678
6678
  }
@@ -6682,17 +6682,19 @@ const IdentificationComponent = class {
6682
6682
  state.requestId = savedRequest;
6683
6683
  this.order_id = savedRequest;
6684
6684
  }
6685
- if (flowStatusToSet == null) {
6685
+ if (this.flowStatusToSet == FlowStatus.NONE) {
6686
6686
  var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
6687
6687
  if (flowSt) {
6688
- flowStatusToSet = FlowStatus[flowSt];
6688
+ this.flowStatusToSet = FlowStatus[flowSt];
6689
6689
  }
6690
6690
  else {
6691
- flowStatusToSet = FlowStatus.LANDING;
6691
+ this.flowStatusToSet = FlowStatus.LANDING;
6692
6692
  }
6693
6693
  }
6694
+ }
6695
+ async componentDidLoad() {
6694
6696
  await this.initializeRequest();
6695
- state.flowStatus = flowStatusToSet;
6697
+ state.flowStatus = this.flowStatusToSet;
6696
6698
  }
6697
6699
  componentWillRender() {
6698
6700
  if (this.idSide == '') {
@@ -32,7 +32,7 @@ export class IdentificationComponent {
32
32
  store.requestId = newValue;
33
33
  store.initialised = false;
34
34
  await this.initializeRequest();
35
- if (store.flowStatus != FlowStatus.LANDING) {
35
+ if (store.flowStatus != FlowStatus.LANDING && store.flowStatus != FlowStatus.NONE) {
36
36
  store.flowStatus = FlowStatus.LANDING;
37
37
  }
38
38
  }
@@ -110,6 +110,7 @@ export class IdentificationComponent {
110
110
  }
111
111
  constructor() {
112
112
  this.logInit = {};
113
+ this.flowStatusToSet = FlowStatus.NONE;
113
114
  this.token = undefined;
114
115
  this.order_id = undefined;
115
116
  this.api_url = undefined;
@@ -164,7 +165,6 @@ export class IdentificationComponent {
164
165
  if (phoneVal && phoneVal.toLowerCase() == 'true') {
165
166
  store.phoneValidation = true;
166
167
  }
167
- var flowStatusToSet = null;
168
168
  const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
169
169
  if (this.order_id && this.order_id != '') {
170
170
  store.requestId = this.order_id;
@@ -173,7 +173,7 @@ export class IdentificationComponent {
173
173
  if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
174
174
  if (store.debug)
175
175
  console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
176
- flowStatusToSet = FlowStatus.LANDING;
176
+ this.flowStatusToSet = FlowStatus.LANDING;
177
177
  store.initialised = false;
178
178
  }
179
179
  }
@@ -183,17 +183,19 @@ export class IdentificationComponent {
183
183
  store.requestId = savedRequest;
184
184
  this.order_id = savedRequest;
185
185
  }
186
- if (flowStatusToSet == null) {
186
+ if (this.flowStatusToSet == FlowStatus.NONE) {
187
187
  var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
188
188
  if (flowSt) {
189
- flowStatusToSet = FlowStatus[flowSt];
189
+ this.flowStatusToSet = FlowStatus[flowSt];
190
190
  }
191
191
  else {
192
- flowStatusToSet = FlowStatus.LANDING;
192
+ this.flowStatusToSet = FlowStatus.LANDING;
193
193
  }
194
194
  }
195
+ }
196
+ async componentDidLoad() {
195
197
  await this.initializeRequest();
196
- store.flowStatus = flowStatusToSet;
198
+ store.flowStatus = this.flowStatusToSet;
197
199
  }
198
200
  componentWillRender() {
199
201
  if (this.idSide == '') {
@@ -6434,7 +6434,7 @@ function v4(options, buf, offset) {
6434
6434
  }
6435
6435
 
6436
6436
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6437
- const version$1 = "3.5.18";
6437
+ const version$1 = "3.5.20";
6438
6438
  const description = "Person Identification Component";
6439
6439
  const main = "./dist/index.cjs.js";
6440
6440
  const module = "./dist/index.js";
@@ -6526,7 +6526,7 @@ const IdentificationComponent = class {
6526
6526
  state.requestId = newValue;
6527
6527
  state.initialised = false;
6528
6528
  await this.initializeRequest();
6529
- if (state.flowStatus != FlowStatus.LANDING) {
6529
+ if (state.flowStatus != FlowStatus.LANDING && state.flowStatus != FlowStatus.NONE) {
6530
6530
  state.flowStatus = FlowStatus.LANDING;
6531
6531
  }
6532
6532
  }
@@ -6605,6 +6605,7 @@ const IdentificationComponent = class {
6605
6605
  constructor(hostRef) {
6606
6606
  registerInstance(this, hostRef);
6607
6607
  this.logInit = {};
6608
+ this.flowStatusToSet = FlowStatus.NONE;
6608
6609
  this.token = undefined;
6609
6610
  this.order_id = undefined;
6610
6611
  this.api_url = undefined;
@@ -6659,7 +6660,6 @@ const IdentificationComponent = class {
6659
6660
  if (phoneVal && phoneVal.toLowerCase() == 'true') {
6660
6661
  state.phoneValidation = true;
6661
6662
  }
6662
- var flowStatusToSet = null;
6663
6663
  const savedRequest = sessionStorage.getItem(SessionKeys.RequestIdKey);
6664
6664
  if (this.order_id && this.order_id != '') {
6665
6665
  state.requestId = this.order_id;
@@ -6668,7 +6668,7 @@ const IdentificationComponent = class {
6668
6668
  if (savedRequest && savedRequest != '' && savedRequest != this.order_id) {
6669
6669
  if (state.debug)
6670
6670
  console.log('Session RequestId: ' + savedRequest + ' has different value than property one: ' + this.order_id);
6671
- flowStatusToSet = FlowStatus.LANDING;
6671
+ this.flowStatusToSet = FlowStatus.LANDING;
6672
6672
  state.initialised = false;
6673
6673
  }
6674
6674
  }
@@ -6678,17 +6678,19 @@ const IdentificationComponent = class {
6678
6678
  state.requestId = savedRequest;
6679
6679
  this.order_id = savedRequest;
6680
6680
  }
6681
- if (flowStatusToSet == null) {
6681
+ if (this.flowStatusToSet == FlowStatus.NONE) {
6682
6682
  var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
6683
6683
  if (flowSt) {
6684
- flowStatusToSet = FlowStatus[flowSt];
6684
+ this.flowStatusToSet = FlowStatus[flowSt];
6685
6685
  }
6686
6686
  else {
6687
- flowStatusToSet = FlowStatus.LANDING;
6687
+ this.flowStatusToSet = FlowStatus.LANDING;
6688
6688
  }
6689
6689
  }
6690
+ }
6691
+ async componentDidLoad() {
6690
6692
  await this.initializeRequest();
6691
- state.flowStatus = flowStatusToSet;
6693
+ state.flowStatus = this.flowStatusToSet;
6692
6694
  }
6693
6695
  componentWillRender() {
6694
6696
  if (this.idSide == '') {