onfido-sdk-ui 14.26.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 +1 -1
- package/Onfido.js +4 -0
- package/Onfido.umd.cjs +1 -1
- package/license +2 -2
- package/package.json +1 -1
- package/types/Onfido.d.ts +1 -0
package/Onfido.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var v=Object.defineProperty;var L=(i,r,
|
|
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
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
|
|
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,11 +1,11 @@
|
|
|
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.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.
|
|
8
|
+
at https://sdk.onfido.com/capture/core/14.27.0/license.
|
|
9
9
|
|
|
10
10
|
3rd party licenses
|
|
11
11
|
------------------
|
package/package.json
CHANGED
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 = {
|