@regulaforensics/idv-face 3.6.399-nightly → 3.6.401-nightly

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/main.iife.js CHANGED
@@ -77,7 +77,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
77
77
  width: 100%;
78
78
  height: 100%;
79
79
  }
80
- `;var MJ=Object.defineProperty,tJ=Object.getOwnPropertyDescriptor,qI=(e,M,t,r)=>{for(var i=r>1?void 0:r?tJ(M,t):M,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(M,t,i):a(i))||i);return r&&i&&MJ(M,t,i),i};let ni=class extends Ir{constructor(){super(...arguments),this._performType=al.DATA,this.props=null,this._isFinishWithExitOnce=!1,this._handleFaceLiveness=e=>{var r,i,n,a,o,u,I,D,g,N,j,c,s;const M=e.detail;(i=(r=this.props)==null?void 0:r.idvEventListener)==null||i.call(r,"IDV-FACE",M.action);const t=((n=M==null?void 0:M.data)==null?void 0:n.transactionId)||"";if(M.action==="PROCESS_FINISHED"){if(this._isFinishWithExitOnce)return;if((a=M.data)!=null&&a.reason&&((o=M.data)==null?void 0:o.status)===Tg.ERROR&&!ul.includes(M.data.reason)){const l={transactionId:"",cancel:!1,errorCode:M.data.reason};(u=this.props)==null||u.perform(l,this._performType)}if(((I=M.data)==null?void 0:I.status)===Tg.OK&&((D=M.data)!=null&&D.response)&&M.data.response.code===0){(g=this.props)!=null&&g.isProcessing&&this.props.isProcessing(!0);const y={transactionId:M.data.response.transactionId,cancel:!1,errorCode:""};(N=this.props)==null||N.perform(y,this._performType),this._isFinishWithExitOnce=!0;return}}if(M.action==="RETRY_COUNTER_EXCEEDED"){(j=this.props)!=null&&j.isProcessing&&this.props.isProcessing(!0);const T={transactionId:t,cancel:!1,errorCode:""};(c=this.props)==null||c.perform(T,this._performType),this._isFinishWithExitOnce=!0;return}if((M==null?void 0:M.action)==="CLOSE"){const T={transactionId:t,cancel:!0,errorCode:""};(s=this.props)==null||s.perform(T,this._performType)}}}_prepareCustomizationStyles(e,M,t){const r=[];if(e!=null&&e.onboardingScreenBackgroundColor&&r.push(Ce`
80
+ `;var MJ=Object.defineProperty,tJ=Object.getOwnPropertyDescriptor,qI=(e,M,t,r)=>{for(var i=r>1?void 0:r?tJ(M,t):M,n=e.length-1,a;n>=0;n--)(a=e[n])&&(i=(r?a(M,t,i):a(i))||i);return r&&i&&MJ(M,t,i),i};let ni=class extends Ir{constructor(){super(...arguments),this._performType=al.DATA,this.props=null,this._isFinishWithExitOnce=!1,this._handleFaceLiveness=e=>{var r,i,n,a,o,u,I,D,g,N,j,c,s,T;const M=e.detail;(n=(r=this.props)==null?void 0:r.idvEventListener)==null||n.call(r,"IDV-FACE",`${M.action}${(i=M.data)!=null&&i.reason?`: ${M.data.reason}`:""}`);const t=((a=M==null?void 0:M.data)==null?void 0:a.transactionId)||"";if(M.action==="PROCESS_FINISHED"){if(this._isFinishWithExitOnce)return;if((o=M.data)!=null&&o.reason&&((u=M.data)==null?void 0:u.status)===Tg.ERROR&&!ul.includes(M.data.reason)){const y={transactionId:"",cancel:!1,errorCode:M.data.reason};(I=this.props)==null||I.perform(y,this._performType)}if(((D=M.data)==null?void 0:D.status)===Tg.OK&&((g=M.data)!=null&&g.response)&&M.data.response.code===0){(N=this.props)!=null&&N.isProcessing&&this.props.isProcessing(!0);const A={transactionId:M.data.response.transactionId,cancel:!1,errorCode:""};(j=this.props)==null||j.perform(A,this._performType),this._isFinishWithExitOnce=!0;return}}if(M.action==="RETRY_COUNTER_EXCEEDED"){(c=this.props)!=null&&c.isProcessing&&this.props.isProcessing(!0);const l={transactionId:t,cancel:!1,errorCode:""};(s=this.props)==null||s.perform(l,this._performType),this._isFinishWithExitOnce=!0;return}if((M==null?void 0:M.action)==="CLOSE"){const l={transactionId:t,cancel:!0,errorCode:""};(T=this.props)==null||T.perform(l,this._performType)}}}_prepareCustomizationStyles(e,M,t){const r=[];if(e!=null&&e.onboardingScreenBackgroundColor&&r.push(Ce`
81
81
  face-liveness::part(onboarding-screen) {
82
82
  background-color: ${Se(e.onboardingScreenBackgroundColor)};
83
83
  }
package/dist/main.js CHANGED
@@ -13639,48 +13639,52 @@ var YX = Object.defineProperty, _X = Object.getOwnPropertyDescriptor, XI = (e, M
13639
13639
  let Rr = class extends gr {
13640
13640
  constructor() {
13641
13641
  super(...arguments), this._performType = Fl.DATA, this.props = null, this._isFinishWithExitOnce = !1, this._handleFaceLiveness = (e) => {
13642
- var r, i, n, a, o, u, I, D, g, N, j, c, s;
13642
+ var r, i, n, a, o, u, I, D, g, N, j, c, s, T;
13643
13643
  const M = e.detail;
13644
- (i = (r = this.props) == null ? void 0 : r.idvEventListener) == null || i.call(r, "IDV-FACE", M.action);
13645
- const t = ((n = M == null ? void 0 : M.data) == null ? void 0 : n.transactionId) || "";
13644
+ (n = (r = this.props) == null ? void 0 : r.idvEventListener) == null || n.call(
13645
+ r,
13646
+ "IDV-FACE",
13647
+ `${M.action}${(i = M.data) != null && i.reason ? `: ${M.data.reason}` : ""}`
13648
+ );
13649
+ const t = ((a = M == null ? void 0 : M.data) == null ? void 0 : a.transactionId) || "";
13646
13650
  if (M.action === "PROCESS_FINISHED") {
13647
13651
  if (this._isFinishWithExitOnce) return;
13648
- if ((a = M.data) != null && a.reason && ((o = M.data) == null ? void 0 : o.status) === yg.ERROR && !Jl.includes(M.data.reason)) {
13649
- const l = {
13652
+ if ((o = M.data) != null && o.reason && ((u = M.data) == null ? void 0 : u.status) === yg.ERROR && !Jl.includes(M.data.reason)) {
13653
+ const y = {
13650
13654
  transactionId: "",
13651
13655
  cancel: !1,
13652
13656
  errorCode: M.data.reason
13653
13657
  };
13654
- (u = this.props) == null || u.perform(l, this._performType);
13658
+ (I = this.props) == null || I.perform(y, this._performType);
13655
13659
  }
13656
- if (((I = M.data) == null ? void 0 : I.status) === yg.OK && ((D = M.data) != null && D.response) && M.data.response.code === 0) {
13657
- (g = this.props) != null && g.isProcessing && this.props.isProcessing(!0);
13658
- const y = {
13660
+ if (((D = M.data) == null ? void 0 : D.status) === yg.OK && ((g = M.data) != null && g.response) && M.data.response.code === 0) {
13661
+ (N = this.props) != null && N.isProcessing && this.props.isProcessing(!0);
13662
+ const A = {
13659
13663
  transactionId: M.data.response.transactionId,
13660
13664
  cancel: !1,
13661
13665
  errorCode: ""
13662
13666
  };
13663
- (N = this.props) == null || N.perform(y, this._performType), this._isFinishWithExitOnce = !0;
13667
+ (j = this.props) == null || j.perform(A, this._performType), this._isFinishWithExitOnce = !0;
13664
13668
  return;
13665
13669
  }
13666
13670
  }
13667
13671
  if (M.action === "RETRY_COUNTER_EXCEEDED") {
13668
- (j = this.props) != null && j.isProcessing && this.props.isProcessing(!0);
13669
- const T = {
13672
+ (c = this.props) != null && c.isProcessing && this.props.isProcessing(!0);
13673
+ const l = {
13670
13674
  transactionId: t,
13671
13675
  cancel: !1,
13672
13676
  errorCode: ""
13673
13677
  };
13674
- (c = this.props) == null || c.perform(T, this._performType), this._isFinishWithExitOnce = !0;
13678
+ (s = this.props) == null || s.perform(l, this._performType), this._isFinishWithExitOnce = !0;
13675
13679
  return;
13676
13680
  }
13677
13681
  if ((M == null ? void 0 : M.action) === "CLOSE") {
13678
- const T = {
13682
+ const l = {
13679
13683
  transactionId: t,
13680
13684
  cancel: !0,
13681
13685
  errorCode: ""
13682
13686
  };
13683
- (s = this.props) == null || s.perform(T, this._performType);
13687
+ (T = this.props) == null || T.perform(l, this._performType);
13684
13688
  }
13685
13689
  };
13686
13690
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-face",
3
- "version": "3.6.399-nightly",
3
+ "version": "3.6.401-nightly",
4
4
  "description": "Regula framework agnostic web components to work with face idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",