onfido-sdk-ui 14.25.0 → 14.27.0

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/Onfido.iife.js CHANGED
@@ -1 +1 @@
1
- var v=Object.defineProperty;var L=(i,r,d)=>r in i?v(i,r,{enumerable:!0,configurable:!0,writable:!0,value:d}):i[r]=d;var o=(i,r,d)=>(L(i,typeof r!="symbol"?r+"":r,d),d);(function(i){"use strict";class r{constructor(){this.eventListener={}}addEventListener(n,e){return this.eventListener[n]=this.eventListener[n]||[],this.eventListener[n].push(e),this}removeEventListener(n,e){const t=this.eventListener[n];if(t){let h;for(;(h=t.indexOf(e))!==-1;)t.splice(h,1)}}trigger(n,e){e.type=n,(this.eventListener[n]||[]).forEach(t=>{t(e)})}}const d="v14";class c extends r{constructor(){super(...arguments);o(this,"_handle");o(this,"_handleSetCallbacks",[])}_setHandle(e){this._handle=e,this._handleSetCallbacks.forEach(t=>t(e)),this._handleSetCallbacks=[],Object.entries(this.eventListener).forEach(([t,h])=>{e.addEventListener(t,h)}),this.eventListener={}}addEventListener(e,t){return this._handle?(this._handle.addEventListener(e,t),this):super.addEventListener(e,t)}removeEventListener(e,t){if(this._handle)return this._handle.removeEventListener(e,t),this;super.removeEventListener(e,t)}async tearDown(){var e;if(this._handle)await((e=this._handle)==null?void 0:e.tearDown());else return this._handleSetCallbacks.push(()=>{this.tearDown()}),Promise.resolve()}}const l=s=>`v${(s||d).replace(/^v/,"")}`,a={init(s){const n=new c;return import(/* webpackIgnore: true */ /* @vite-ignore */ s.sdkUrl||`https://sdk.onfido.com/${l(s.version)}/Onfido.js`).then(t=>{const{Onfido:h}=t;n._setHandle(h.init(s))}).catch(t=>{var h;n.trigger("error",{error:t}),(h=s.onError)==null||h.call(s,t)}),n}};i.Onfido=a,i.prefixVersion=l,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})})(this.window=this.window||{});
1
+ var v=Object.defineProperty;var L=(i,r,o)=>r in i?v(i,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[r]=o;var d=(i,r,o)=>(L(i,typeof r!="symbol"?r+"":r,o),o);(function(i){"use strict";class r{constructor(){this.eventListener={}}addEventListener(n,e){return this.eventListener[n]=this.eventListener[n]||[],this.eventListener[n].push(e),this}removeEventListener(n,e){const t=this.eventListener[n];if(t){let h;for(;(h=t.indexOf(e))!==-1;)t.splice(h,1)}}trigger(n,e){e.type=n,(this.eventListener[n]||[]).forEach(t=>{t(e)})}}const o="v14";class c extends r{constructor(){super(...arguments);d(this,"_handle");d(this,"_handleSetCallbacks",[])}_setHandle(e){this._handle=e,this._handleSetCallbacks.forEach(t=>t(e)),this._handleSetCallbacks=[],Object.entries(this.eventListener).forEach(([t,h])=>{e.addEventListener(t,h)}),this.eventListener={}}addEventListener(e,t){return this._handle?(this._handle.addEventListener(e,t),this):super.addEventListener(e,t)}removeEventListener(e,t){if(this._handle)return this._handle.removeEventListener(e,t),this;super.removeEventListener(e,t)}async tearDown(){var e;if(this._handle)await((e=this._handle)==null?void 0:e.tearDown());else return this._handleSetCallbacks.push(()=>{this.tearDown()}),Promise.resolve()}get version(){var e;return(e=this._handle)==null?void 0:e.version}}const l=s=>`v${(s||o).replace(/^v/,"")}`,a={init(s){const n=new c;return import(/* webpackIgnore: true */ /* @vite-ignore */ s.sdkUrl||`https://sdk.onfido.com/${l(s.version)}/Onfido.js`).then(t=>{const{Onfido:h}=t;n._setHandle(h.init(s))}).catch(t=>{var h;n.trigger("error",{error:t}),(h=s.onError)==null||h.call(s,t)}),n}};i.Onfido=a,i.prefixVersion=l,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})})(this.window=this.window||{});
package/Onfido.js CHANGED
@@ -51,6 +51,10 @@ class c extends o {
51
51
  this.tearDown();
52
52
  }), Promise.resolve();
53
53
  }
54
+ get version() {
55
+ var e;
56
+ return (e = this._handle) == null ? void 0 : e.version;
57
+ }
54
58
  }
55
59
  const a = (s) => `v${(s || l).replace(/^v/, "")}`, L = {
56
60
  init(s) {
package/Onfido.umd.cjs CHANGED
@@ -1 +1 @@
1
- (function(n,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(n=typeof globalThis<"u"?globalThis:n||self,i(n.window=n.window||{}))})(this,function(n){"use strict";var a=Object.defineProperty;var v=(n,i,o)=>i in n?a(n,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[i]=o;var h=(n,i,o)=>(v(n,typeof i!="symbol"?i+"":i,o),o);class i{constructor(){this.eventListener={}}addEventListener(s,e){return this.eventListener[s]=this.eventListener[s]||[],this.eventListener[s].push(e),this}removeEventListener(s,e){const t=this.eventListener[s];if(t){let d;for(;(d=t.indexOf(e))!==-1;)t.splice(d,1)}}trigger(s,e){e.type=s,(this.eventListener[s]||[]).forEach(t=>{t(e)})}}const o="v14";class c extends i{constructor(){super(...arguments);h(this,"_handle");h(this,"_handleSetCallbacks",[])}_setHandle(e){this._handle=e,this._handleSetCallbacks.forEach(t=>t(e)),this._handleSetCallbacks=[],Object.entries(this.eventListener).forEach(([t,d])=>{e.addEventListener(t,d)}),this.eventListener={}}addEventListener(e,t){return this._handle?(this._handle.addEventListener(e,t),this):super.addEventListener(e,t)}removeEventListener(e,t){if(this._handle)return this._handle.removeEventListener(e,t),this;super.removeEventListener(e,t)}async tearDown(){var e;if(this._handle)await((e=this._handle)==null?void 0:e.tearDown());else return this._handleSetCallbacks.push(()=>{this.tearDown()}),Promise.resolve()}}const l=r=>`v${(r||o).replace(/^v/,"")}`,f={init(r){const s=new c;return import(/* webpackIgnore: true */ /* @vite-ignore */ r.sdkUrl||`https://sdk.onfido.com/${l(r.version)}/Onfido.js`).then(t=>{const{Onfido:d}=t;s._setHandle(d.init(r))}).catch(t=>{var d;s.trigger("error",{error:t}),(d=r.onError)==null||d.call(r,t)}),s}};n.Onfido=f,n.prefixVersion=l,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
1
+ (function(n,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(n=typeof globalThis<"u"?globalThis:n||self,i(n.window=n.window||{}))})(this,function(n){"use strict";var v=Object.defineProperty;var a=(n,i,o)=>i in n?v(n,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[i]=o;var h=(n,i,o)=>(a(n,typeof i!="symbol"?i+"":i,o),o);class i{constructor(){this.eventListener={}}addEventListener(s,e){return this.eventListener[s]=this.eventListener[s]||[],this.eventListener[s].push(e),this}removeEventListener(s,e){const t=this.eventListener[s];if(t){let d;for(;(d=t.indexOf(e))!==-1;)t.splice(d,1)}}trigger(s,e){e.type=s,(this.eventListener[s]||[]).forEach(t=>{t(e)})}}const o="v14";class c extends i{constructor(){super(...arguments);h(this,"_handle");h(this,"_handleSetCallbacks",[])}_setHandle(e){this._handle=e,this._handleSetCallbacks.forEach(t=>t(e)),this._handleSetCallbacks=[],Object.entries(this.eventListener).forEach(([t,d])=>{e.addEventListener(t,d)}),this.eventListener={}}addEventListener(e,t){return this._handle?(this._handle.addEventListener(e,t),this):super.addEventListener(e,t)}removeEventListener(e,t){if(this._handle)return this._handle.removeEventListener(e,t),this;super.removeEventListener(e,t)}async tearDown(){var e;if(this._handle)await((e=this._handle)==null?void 0:e.tearDown());else return this._handleSetCallbacks.push(()=>{this.tearDown()}),Promise.resolve()}get version(){var e;return(e=this._handle)==null?void 0:e.version}}const l=r=>`v${(r||o).replace(/^v/,"")}`,f={init(r){const s=new c;return import(/* webpackIgnore: true */ /* @vite-ignore */ r.sdkUrl||`https://sdk.onfido.com/${l(r.version)}/Onfido.js`).then(t=>{const{Onfido:d}=t;s._setHandle(d.init(r))}).catch(t=>{var d;s.trigger("error",{error:t}),(d=r.onError)==null||d.call(r,t)}),s}};n.Onfido=f,n.prefixVersion=l,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
package/license CHANGED
@@ -1,17 +1,17 @@
1
1
  Please see the terms of your Onfido Services Agreement which you are bound by with respect to your use of the Onfido
2
2
  SDK. To the extent the Onfido SDK includes copies or substantial portions of software licenced under third party terms
3
- and conditions this will be set out at https://sdk.onfido.com/capture/core/14.25.0/license.
3
+ and conditions this will be set out at https://sdk.onfido.com/capture/core/14.27.0/license.
4
4
 
5
5
  In the event of any inconsistency between the Onfido Services Agreement and any third party terms and conditions, the
6
6
  third party terms and conditions shall take precedence over the rights and
7
7
  restrictions granted in the Onfido Services Agreement solely in respect of such third party dependencies set out
8
- at https://sdk.onfido.com/capture/core/14.25.0/license.
8
+ at https://sdk.onfido.com/capture/core/14.27.0/license.
9
9
 
10
10
  3rd party licenses
11
11
  ------------------
12
12
 
13
13
  Name: @onfido/capture-shared
14
- Version: 1.32.4
14
+ Version: 1.34.0
15
15
  License: null
16
16
  Private: false
17
17
  Description: A shared library to use in various capture packages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onfido-sdk-ui",
3
- "version": "14.25.0",
3
+ "version": "14.27.0",
4
4
  "description": "JavaScript SDK view layer for Onfido identity verification",
5
5
  "author": "Web SDK Customer Support <web-sdk@onfido.com> (https://github.com/onfido)",
6
6
  "repository": {
package/types/Onfido.d.ts CHANGED
@@ -5,6 +5,7 @@ export type Handle = {
5
5
  addEventListener: <EventName extends keyof CaptureRunEvents>(eventName: EventName, listener: Listener<CaptureRunEvents[EventName]>) => void;
6
6
  removeEventListener: <EventName extends keyof CaptureRunEvents>(eventName: EventName, listener: Listener<CaptureRunEvents[EventName]>) => void;
7
7
  tearDown: () => Promise<void>;
8
+ version?: string;
8
9
  };
9
10
  export declare const backwardCompatibility: (parameter: SdkParameters) => void;
10
11
  export type OnfidoApi = {
@@ -3,7 +3,7 @@ export declare enum SdkErrorLevel {
3
3
  EXTERNAL = "external",
4
4
  INTERNAL = "internal"
5
5
  }
6
- export type SdkErrorTypes = 'invalid_token' | 'expired_token' | 'expired_trial' | 'geoblocked_request' | 'permissions_unavailable' | 'exception' | 'unsupported' | 'unsupported_feature' | 'invalid_sdk_parameter' | 'restart' | 'desktop' | 'unsupported_sdk_version' | 'no_camera' | 'user_consent_denied' | 'uncaught_fetch_error' | 'api_error' | 'cross_device_verification_invalid' | 'cross_device_verification_abort';
6
+ export type SdkErrorTypes = 'invalid_token' | 'expired_token' | 'expired_trial' | 'geoblocked_request' | 'permissions_unavailable' | 'exception' | 'unsupported' | 'unsupported_feature' | 'invalid_sdk_parameter' | 'restart' | 'desktop' | 'unsupported_sdk_version' | 'no_camera' | 'user_consent_denied' | 'uncaught_fetch_error' | 'api_error' | 'cross_device_verification_invalid' | 'cross_device_verification_abort' | 'workflow_abandoned' | 'workflow_error';
7
7
  export declare const isSdkError: (error: unknown) => boolean;
8
8
  export type SdkErrors = {
9
9
  type: SdkErrorTypes;
@@ -15,6 +15,8 @@ export declare const CrossDeviceDesktopError: SdkErrors;
15
15
  export declare const CrossDeviceVerificationInvalidError: SdkErrors;
16
16
  export declare const CrossDeviceVerificationAbortError: SdkErrors;
17
17
  export declare const InvalidTokenError: SdkErrors;
18
+ export declare const WorkflowAbondonedError: SdkErrors;
19
+ export declare const WorkflowError: SdkErrors;
18
20
  export declare const ExpiredTokenError: SdkErrors;
19
21
  export declare const ExpiredTrialError: SdkErrors;
20
22
  export declare const GeoblockedRequestError: SdkErrors;
@@ -178,6 +178,8 @@ export type TrackedEnvironmentData = {
178
178
  os_version?: string;
179
179
  browser?: string;
180
180
  browser_version?: string;
181
+ brand?: string;
182
+ model?: string;
181
183
  };
182
184
  export declare enum CrossDeviceVerificationStatus {
183
185
  VALID = "VALID",