onfido-sdk-ui 14.22.0 → 14.24.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 +1 -1
- package/Onfido.js +1 -1
- package/Onfido.umd.cjs +1 -1
- package/license +3 -3
- package/package.json +1 -1
- package/types/loader.d.ts +0 -6
- package/types/shared/FaceModule.types.d.ts +1 -0
- package/types/shared/SdkParameters.d.ts +1 -0
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 */ 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,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||{});
|
package/Onfido.js
CHANGED
|
@@ -55,7 +55,7 @@ class c extends o {
|
|
|
55
55
|
const a = (s) => `v${(s || l).replace(/^v/, "")}`, L = {
|
|
56
56
|
init(s) {
|
|
57
57
|
const t = new c();
|
|
58
|
-
return import(/* webpackIgnore: true */ s.sdkUrl || `https://sdk.onfido.com/${a(s.version)}/Onfido.js`).then((n) => {
|
|
58
|
+
return import(/* webpackIgnore: true */ /* @vite-ignore */ s.sdkUrl || `https://sdk.onfido.com/${a(s.version)}/Onfido.js`).then((n) => {
|
|
59
59
|
const { Onfido: i } = n;
|
|
60
60
|
t._setHandle(i.init(s));
|
|
61
61
|
}).catch((n) => {
|
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 */ 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 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"})});
|
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.
|
|
3
|
+
and conditions this will be set out at https://sdk.onfido.com/capture/core/14.24.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.
|
|
8
|
+
at https://sdk.onfido.com/capture/core/14.24.0/license.
|
|
9
9
|
|
|
10
10
|
3rd party licenses
|
|
11
11
|
------------------
|
|
12
12
|
|
|
13
13
|
Name: @onfido/capture-shared
|
|
14
|
-
Version: 1.
|
|
14
|
+
Version: 1.32.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
package/types/loader.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { SdkParameters } from './shared/SdkParameters';
|
|
2
2
|
import type { Handle } from './Onfido';
|
|
3
3
|
export type LoaderParameter = {
|
|
4
|
-
/**
|
|
5
|
-
* This is a developer feature, if the sdk is hosted on a different url
|
|
6
|
-
* @deprecated
|
|
7
|
-
* @type {string}
|
|
8
|
-
*/
|
|
9
|
-
sdkUrl?: string;
|
|
10
4
|
/**
|
|
11
5
|
* The version of the sdk to be loaded, by default v14 is used, which
|
|
12
6
|
* is always fresh. Valid examples are 14 (default), 14.x (which pins the version to a minor version
|
|
@@ -37,6 +37,7 @@ export type TokenParameters = {
|
|
|
37
37
|
smsNumberCountryCode?: string;
|
|
38
38
|
userDetails?: UserDetails;
|
|
39
39
|
_crossDeviceLinkMethods?: CrossDeviceMethod[];
|
|
40
|
+
crossDeviceClientIntroProductLogoSrc?: string;
|
|
40
41
|
crossDevicePolicy?: CrossDevicePolicy;
|
|
41
42
|
disableAnalytics?: boolean;
|
|
42
43
|
disableAnalyticsCookies?: boolean;
|