@regulaforensics/idv-capture-web 3.8.435-rc → 3.8.440-rc

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.js CHANGED
@@ -6384,8 +6384,8 @@ function Di(e) {
6384
6384
  }
6385
6385
  var Oi = (e, t) => {
6386
6386
  if (!e || !t) return null;
6387
- let n = null;
6388
- return n = Di(e), n && (n = Si(n, t)), n;
6387
+ let n = Di(e);
6388
+ return n ? Si(n, t) : null;
6389
6389
  };
6390
6390
  function ki(e) {
6391
6391
  return Ai.apply(this, arguments);
@@ -6562,7 +6562,7 @@ var Yi = () => {
6562
6562
  osVersion: `${$r.osVersion}`,
6563
6563
  hostAppId: Yi(),
6564
6564
  host: Yi(),
6565
- sdkVersion: (t = "3.8.435-rc") == null ? void 0 : t.trim(),
6565
+ sdkVersion: (t = "3.8.440-rc") == null ? void 0 : t.trim(),
6566
6566
  name: navigator.userAgent,
6567
6567
  deviceModel: `${$r.osName}/${$r.osVersion} ${$r.browserName}/${$r.fullBrowserVersion}`,
6568
6568
  hostAppVersion: `${$r.browserName}/${$r.fullBrowserVersion}`,
@@ -12201,31 +12201,31 @@ var Nu = ({ settings: e, errorMessages: t, serviceToken: n, uploadFileToTemp: r,
12201
12201
  return t.apply(this, arguments);
12202
12202
  };
12203
12203
  }(), T = function() {
12204
- var e = y(function* () {
12204
+ var e = y(function* (e) {
12205
12205
  if (x || g || _ || p) return;
12206
12206
  c((e) => e.map((e) => k(k({}, e), {}, { serverError: void 0 })));
12207
- let e = d.current.filter((e) => e.clientValidation === vu.OK).map((e) => e.id);
12208
- if (!e.length) return;
12207
+ let t = d.current.filter((e) => e.clientValidation === vu.OK).map((e) => e.id);
12208
+ if (!t.length) return;
12209
12209
  u(Y.UPLOADING), f.current = !1;
12210
- let t = [], n = !1;
12211
- for (let r of e) {
12210
+ let n = [], r = !1;
12211
+ for (let e of t) {
12212
12212
  if (f.current) break;
12213
- let e = d.current.find((e) => e.id === r);
12214
- if (!e || e.clientValidation !== vu.OK) continue;
12215
- if (e.uploadState === _u.SUCCESS && e.tempFileId) {
12216
- t.push(e.tempFileId);
12213
+ let t = d.current.find((t) => t.id === e);
12214
+ if (!t || t.clientValidation !== vu.OK) continue;
12215
+ if (t.uploadState === _u.SUCCESS && t.tempFileId) {
12216
+ n.push(t.tempFileId);
12217
12217
  continue;
12218
12218
  }
12219
- let i = yield C(e);
12219
+ let i = yield C(t);
12220
12220
  if (f.current) break;
12221
- i ? t.push(i.tempFileId) : n = !0;
12221
+ i ? n.push(i.tempFileId) : r = !0;
12222
12222
  }
12223
- !n && t.length === e.length && o({
12224
- files: t,
12223
+ !r && n.length === t.length && o({
12224
+ files: n,
12225
12225
  upload_complete: !0
12226
- }, ga.DATA), u(Y.DONE);
12226
+ }, e), u(Y.DONE);
12227
12227
  });
12228
- return function() {
12228
+ return function(t) {
12229
12229
  return e.apply(this, arguments);
12230
12230
  };
12231
12231
  }(), E = function() {
@@ -12245,7 +12245,7 @@ var Nu = ({ settings: e, errorMessages: t, serviceToken: n, uploadFileToTemp: r,
12245
12245
  return t.length > 0 && t.every((e) => e.uploadState === _u.SUCCESS && e.tempFileId) && o({
12246
12246
  files: t.map((e) => e.tempFileId),
12247
12247
  upload_complete: !0
12248
- }, ga.DATA), e;
12248
+ }, ga.FORM), e;
12249
12249
  }), u(Y.DONE));
12250
12250
  });
12251
12251
  return function(t) {
@@ -12362,7 +12362,7 @@ var Ku = (e) => {
12362
12362
  });
12363
12363
  } else if (e.actionId === "SUBMIT_FILES") {
12364
12364
  if (C.length === 0) return b(!0);
12365
- te();
12365
+ te(e.type === "FORM" ? ga.FORM : ga.DATA);
12366
12366
  }
12367
12367
  }
12368
12368
  };
@@ -16216,7 +16216,10 @@ var jf = (e, t) => ({
16216
16216
  let i = t()._decodeMessageFromWebSocket(e);
16217
16217
  if (!i || !["SESSION_UPDATED", "SESSION_STATE"].includes(i == null ? void 0 : i.eventType)) return;
16218
16218
  let o = (r = i.options) == null ? void 0 : r.session;
16219
- if (!o) return;
16219
+ if (!o) {
16220
+ f({ isDeferred: !1 });
16221
+ return;
16222
+ }
16220
16223
  let s = t()._validateSession(o);
16221
16224
  if ("validationErrorMessage" in s) {
16222
16225
  R.logSessionEvent({
@@ -17857,7 +17860,7 @@ var Pf = Wr((...e) => k(k(k({}, ua(...e)), Tf(...e)), jf(...e))), Ff = (e) => /^
17857
17860
  return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = If(e.id, t), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
17858
17861
  }
17859
17862
  get version() {
17860
- return "3.8.435-rc";
17863
+ return "3.8.440-rc";
17861
17864
  }
17862
17865
  disconnectedCallback() {
17863
17866
  var e;
@@ -17975,7 +17978,7 @@ var Uf = class {
17975
17978
  }
17976
17979
  get version() {
17977
17980
  var e;
17978
- return (e = "3.8.435-rc") == null ? "Version unavailable. Something went wrong" : e;
17981
+ return (e = "3.8.440-rc") == null ? "Version unavailable. Something went wrong" : e;
17979
17982
  }
17980
17983
  get currentSessionId() {
17981
17984
  return Pf.getState().getCurrentSessionId();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-capture-web",
3
- "version": "3.8.435-rc",
3
+ "version": "3.8.440-rc",
4
4
  "description": "Regula framework agnostic web components to work with webcamera",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/main.js",