@regulaforensics/idv-capture-web 3.8.453-nightly → 3.8.455-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.js CHANGED
@@ -6564,7 +6564,7 @@ var Yi = () => {
6564
6564
  osVersion: `${Qr.osVersion}`,
6565
6565
  hostAppId: Yi(),
6566
6566
  host: Yi(),
6567
- sdkVersion: (t = "3.8.453-nightly") == null ? void 0 : t.trim(),
6567
+ sdkVersion: (t = "3.8.455-nightly") == null ? void 0 : t.trim(),
6568
6568
  name: navigator.userAgent,
6569
6569
  deviceModel: `${Qr.osName}/${Qr.osVersion} ${Qr.browserName}/${Qr.fullBrowserVersion}`,
6570
6570
  hostAppVersion: `${Qr.browserName}/${Qr.fullBrowserVersion}`,
@@ -16654,43 +16654,31 @@ var Wf = (e, t) => ({
16654
16654
  }(),
16655
16655
  _prepareScreenConfigAndShowStep: function() {
16656
16656
  var n = y(function* (n) {
16657
- var r;
16657
+ var r, i, a;
16658
16658
  if (!n) return e(() => ({ currentScreenConfig: null }));
16659
- let i = t().workflow;
16660
- if (!i) return e(() => ({ currentScreenConfig: null }));
16661
- let a = t().sessionProperties, o = null;
16662
- if (n === "PROGRESS" && t().getProcessingTemplate() !== null) {
16663
- let e = t().getProcessingTemplate();
16664
- e && (o = {
16665
- templateId: e.templateId,
16666
- templateLayout: e.templateLayout,
16667
- dataSource: null,
16659
+ let o = t().workflow;
16660
+ if (!o) return e(() => ({ currentScreenConfig: null }));
16661
+ let s = t().sessionProperties, c = null, l = t()._findStepById(n);
16662
+ if (typeof (l == null || (r = l.client) == null ? void 0 : r.templateId) == "string") {
16663
+ var u;
16664
+ c = A(A({}, l.client), {}, {
16665
+ templateId: l.client.templateId,
16666
+ dataSource: (u = l.dataSource) == null ? null : u,
16667
+ properties: s,
16668
+ stepType: l.type,
16668
16669
  locale: t().locale
16669
16670
  });
16670
- } else {
16671
- var s, c;
16672
- let e = t()._findStepById(n);
16673
- if (typeof (e == null || (s = e.client) == null ? void 0 : s.templateId) == "string") {
16674
- var l;
16675
- o = A(A({}, e.client), {}, {
16676
- templateId: e.client.templateId,
16677
- dataSource: (l = e.dataSource) == null ? null : l,
16678
- properties: a,
16679
- stepType: e.type,
16680
- locale: t().locale
16681
- });
16682
- }
16683
- if (o) {
16684
- var u;
16685
- o.sessionId = (u = t().currentSessionData) == null ? void 0 : u.sessionId, o.serviceToken = t().serviceToken;
16686
- }
16687
- if (o && Ui(e == null || (c = e.client) == null ? void 0 : c.templateLayout)) {
16688
- let t = i.client.layout, n = Di(e.client.templateLayout, t);
16689
- n && (o.templateLayout = n);
16690
- }
16691
16671
  }
16692
- let d = Mi(t().externalModules, i.steps, n);
16693
- if (o === null || !d) {
16672
+ if (c) {
16673
+ var d;
16674
+ c.sessionId = (d = t().currentSessionData) == null ? void 0 : d.sessionId, c.serviceToken = t().serviceToken;
16675
+ }
16676
+ if (c && Ui(l == null || (i = l.client) == null ? void 0 : i.templateLayout)) {
16677
+ let e = o.client.layout, t = Di(l.client.templateLayout, e);
16678
+ t && (c.templateLayout = t);
16679
+ }
16680
+ let f = Mi(t().externalModules, o.steps, n);
16681
+ if (c === null || !f) {
16694
16682
  let n = new Ia({
16695
16683
  errorCode: oi.UNKNOWN_STEP,
16696
16684
  message: "Unsupported step template"
@@ -16698,16 +16686,16 @@ var Wf = (e, t) => ({
16698
16686
  t().workflowSessionCompletion({ error: n }), e(() => ({ currentScreenConfig: null })), t().resetSession();
16699
16687
  return;
16700
16688
  }
16701
- Uf.clearFailedAssets(), o = ga(o);
16702
- let f = t().externalModules.find((e) => e.id === "idv-gui"), p = !!(!(f == null || (r = f.supportedTemplates) == null) && r.includes(o.templateId)), m = yield Uf.warmupModuleImages(o, p);
16703
- if (p) {
16689
+ Uf.clearFailedAssets(), c = ga(c);
16690
+ let p = t().externalModules.find((e) => e.id === "idv-gui"), m = !!(!(p == null || (a = p.supportedTemplates) == null) && a.includes(c.templateId)), h = yield Uf.warmupModuleImages(c, m);
16691
+ if (m) {
16704
16692
  let e = t().fetchService;
16705
- o = A(A({}, o), {}, {
16693
+ c = A(A({}, c), {}, {
16706
16694
  uploadFileToTemp: e == null ? void 0 : e.uploadFileToTemp.bind(e),
16707
16695
  abortRequest: e == null ? void 0 : e.abortRequest.bind(e)
16708
16696
  });
16709
16697
  }
16710
- o = A(A({}, o), {}, { failedAssets: m }), e(() => ({ currentScreenConfig: o }));
16698
+ c = A(A({}, c), {}, { failedAssets: h }), e(() => ({ currentScreenConfig: c }));
16711
16699
  });
16712
16700
  return function(e) {
16713
16701
  return n.apply(this, arguments);
@@ -18075,7 +18063,7 @@ var qf = Ur((...e) => A(A(A({}, da(...e)), Rf(...e)), Wf(...e))), Jf = (e) => /^
18075
18063
  return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = Yf(e.id, t), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
18076
18064
  }
18077
18065
  get version() {
18078
- return "3.8.453-nightly";
18066
+ return "3.8.455-nightly";
18079
18067
  }
18080
18068
  disconnectedCallback() {
18081
18069
  var e;
@@ -18194,7 +18182,7 @@ var np = class {
18194
18182
  }
18195
18183
  get version() {
18196
18184
  var e;
18197
- return (e = "3.8.453-nightly") == null ? "Version unavailable. Something went wrong" : e;
18185
+ return (e = "3.8.455-nightly") == null ? "Version unavailable. Something went wrong" : e;
18198
18186
  }
18199
18187
  get currentSessionId() {
18200
18188
  return qf.getState().getCurrentSessionId();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-capture-web",
3
- "version": "3.8.453-nightly",
3
+ "version": "3.8.455-nightly",
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",