@basis-theory/web-elements 3.0.0-beta.4 → 3.0.0-beta.6
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/.vite/manifest.json +22 -11
- package/dist/basis-theory-sdk.es.js +2 -2
- package/dist/basis-theory-sdk.umd.js +1 -1
- package/dist/basis-theory-sdk.umd.js.map +1 -1
- package/dist/{create-card-B5zEHyRg.js → create-card-C0MwL3Ou.js} +21 -14
- package/dist/create-card-C0MwL3Ou.js.map +1 -0
- package/dist/create-card-display-DscvxIs4.js +291 -0
- package/dist/create-card-display-DscvxIs4.js.map +1 -0
- package/dist/{create-copy-button-DrAz8g0m.js → create-copy-button-DlJ3VvAn.js} +40 -12
- package/dist/create-copy-button-DlJ3VvAn.js.map +1 -0
- package/dist/{index-BOedIhUN.js → index-DPhSs28B.js} +432 -121
- package/dist/index-DPhSs28B.js.map +1 -0
- package/dist/index.d.ts +1133 -0
- package/dist/loader/basis-theory.min.js +1 -1
- package/dist/sri.json +9 -9
- package/dist/stats.html +1 -1
- package/package.json +12 -12
- package/dist/api-client/src/api-client.d.ts +0 -11
- package/dist/api-client/src/api-client.d.ts.map +0 -1
- package/dist/api-client/src/bin-lookup-transform.d.ts +0 -35
- package/dist/api-client/src/bin-lookup-transform.d.ts.map +0 -1
- package/dist/api-client/src/http-client.d.ts +0 -24
- package/dist/api-client/src/http-client.d.ts.map +0 -1
- package/dist/api-client/src/index.d.ts +0 -9
- package/dist/api-client/src/index.d.ts.map +0 -1
- package/dist/api-client/src/services/sessions.d.ts +0 -19
- package/dist/api-client/src/services/sessions.d.ts.map +0 -1
- package/dist/api-client/src/services/token-intents.d.ts +0 -17
- package/dist/api-client/src/services/token-intents.d.ts.map +0 -1
- package/dist/api-client/src/services/tokens.d.ts +0 -19
- package/dist/api-client/src/services/tokens.d.ts.map +0 -1
- package/dist/api-client/src/types.d.ts +0 -421
- package/dist/api-client/src/types.d.ts.map +0 -1
- package/dist/create-card-B5zEHyRg.js.map +0 -1
- package/dist/create-copy-button-DrAz8g0m.js.map +0 -1
- package/dist/index-BOedIhUN.js.map +0 -1
- package/dist/postmessage/src/client.d.ts +0 -7
- package/dist/postmessage/src/client.d.ts.map +0 -1
- package/dist/postmessage/src/event-map.d.ts +0 -139
- package/dist/postmessage/src/event-map.d.ts.map +0 -1
- package/dist/postmessage/src/index.d.ts +0 -9
- package/dist/postmessage/src/index.d.ts.map +0 -1
- package/dist/postmessage/src/server.d.ts +0 -11
- package/dist/postmessage/src/server.d.ts.map +0 -1
- package/dist/postmessage/src/types.d.ts +0 -75
- package/dist/postmessage/src/types.d.ts.map +0 -1
- package/dist/shared/src/api-url-resolver.d.ts +0 -22
- package/dist/shared/src/api-url-resolver.d.ts.map +0 -1
- package/dist/shared/src/debug-logger.d.ts +0 -16
- package/dist/shared/src/debug-logger.d.ts.map +0 -1
- package/dist/shared/src/deep-sanitization.d.ts +0 -24
- package/dist/shared/src/deep-sanitization.d.ts.map +0 -1
- package/dist/shared/src/errors.d.ts +0 -93
- package/dist/shared/src/errors.d.ts.map +0 -1
- package/dist/shared/src/generate-id.d.ts +0 -13
- package/dist/shared/src/generate-id.d.ts.map +0 -1
- package/dist/shared/src/index.d.ts +0 -14
- package/dist/shared/src/index.d.ts.map +0 -1
- package/dist/shared/src/logger-context.d.ts +0 -25
- package/dist/shared/src/logger-context.d.ts.map +0 -1
- package/dist/shared/src/proxy-validation.d.ts +0 -93
- package/dist/shared/src/proxy-validation.d.ts.map +0 -1
- package/dist/web-elements/src/BasisTheory.d.ts +0 -47
- package/dist/web-elements/src/BasisTheory.d.ts.map +0 -1
- package/dist/web-elements/src/basis-theory.d.ts +0 -85
- package/dist/web-elements/src/basis-theory.d.ts.map +0 -1
- package/dist/web-elements/src/elements/create-card-number.d.ts +0 -15
- package/dist/web-elements/src/elements/create-card-number.d.ts.map +0 -1
- package/dist/web-elements/src/elements/create-card.d.ts +0 -50
- package/dist/web-elements/src/elements/create-card.d.ts.map +0 -1
- package/dist/web-elements/src/elements/create-copy-button.d.ts +0 -19
- package/dist/web-elements/src/elements/create-copy-button.d.ts.map +0 -1
- package/dist/web-elements/src/elements/create-cvv.d.ts +0 -11
- package/dist/web-elements/src/elements/create-cvv.d.ts.map +0 -1
- package/dist/web-elements/src/elements/create-expiry.d.ts +0 -11
- package/dist/web-elements/src/elements/create-expiry.d.ts.map +0 -1
- package/dist/web-elements/src/elements/create-text.d.ts +0 -14
- package/dist/web-elements/src/elements/create-text.d.ts.map +0 -1
- package/dist/web-elements/src/index.d.ts +0 -27
- package/dist/web-elements/src/index.d.ts.map +0 -1
- package/dist/web-elements/src/mounter/create-mounter.d.ts +0 -11
- package/dist/web-elements/src/mounter/create-mounter.d.ts.map +0 -1
- package/dist/web-elements/src/theme/default-theme.d.ts +0 -22
- package/dist/web-elements/src/theme/default-theme.d.ts.map +0 -1
- package/dist/web-elements/src/theme/inject-theme-dark.d.ts +0 -13
- package/dist/web-elements/src/theme/inject-theme-dark.d.ts.map +0 -1
- package/dist/web-elements/src/theme/inject-theme.d.ts +0 -20
- package/dist/web-elements/src/theme/inject-theme.d.ts.map +0 -1
- package/dist/web-elements/src/types/events.d.ts +0 -165
- package/dist/web-elements/src/types/events.d.ts.map +0 -1
- package/dist/web-elements/src/types/theme.d.ts +0 -91
- package/dist/web-elements/src/types/theme.d.ts.map +0 -1
- package/dist/web-elements/src/types.d.ts +0 -667
- package/dist/web-elements/src/types.d.ts.map +0 -1
- package/dist/web-elements/src/utils/create-event-dispatcher.d.ts +0 -47
- package/dist/web-elements/src/utils/create-event-dispatcher.d.ts.map +0 -1
- package/dist/web-elements/src/utils/create-iframe.d.ts +0 -10
- package/dist/web-elements/src/utils/create-iframe.d.ts.map +0 -1
- package/dist/web-elements/src/utils/resolve-element-references.d.ts +0 -20
- package/dist/web-elements/src/utils/resolve-element-references.d.ts.map +0 -1
- package/dist/web-elements/src/utils/validate-element-options.d.ts +0 -11
- package/dist/web-elements/src/utils/validate-element-options.d.ts.map +0 -1
- package/dist/web-elements/src/utils/validate-sdk-config.d.ts +0 -15
- package/dist/web-elements/src/utils/validate-sdk-config.d.ts.map +0 -1
- package/dist/web-elements/src/utils/warn-unknown-keys.d.ts +0 -15
- package/dist/web-elements/src/utils/warn-unknown-keys.d.ts.map +0 -1
- package/dist/web-elements/src/version.d.ts +0 -25
- package/dist/web-elements/src/version.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var BasisTheoryLoader=function(
|
|
1
|
+
var BasisTheoryLoader=(function($){"use strict";const N=[/cardnumber/i,/^pan$/i,/accountnumber/i,/^number$/i],M=[/cvv/i,/cvc/i,/cvv2/i,/securitycode/i,/pin/i,/password/i,/secret/i,/token/i,/ssn/i,/track/i,/session_key/i,/^apikey$/i],L=e=>N.some(t=>t.test(e)),j=e=>M.some(t=>t.test(e)),D=e=>{const t=e.replace(/\D/g,"");if(t.length<10)return"***";const o=t.substring(0,6),n=t.substring(t.length-4),u=Math.max(t.length-10,6),d="*".repeat(u);return`${o}${d}${n}`},v=e=>{const t=e.replace(/[\s-]/g,"");return/^\d{13,19}$/.test(t)},H=(e,t)=>t==null?t:typeof t=="function"?"[Function]":typeof t=="symbol"?"[Symbol]":t instanceof RegExp?"[RegExp]":t instanceof Date?t:L(e)?typeof t=="string"?D(t):"***":j(e)?"***":typeof t=="string"&&v(t)?D(t):t,E=(e,t=0,o=new WeakSet)=>{if(t>=5)return"[Max Depth]";if(e==null)return e;if(typeof e=="string")return v(e)?D(e):e;if(typeof e!="object")return e;if(e instanceof RegExp)return"[RegExp]";if(e instanceof Date)return e;if(o.has(e))return"[Circular]";o.add(e);let n;if(Array.isArray(e))n=e.map(u=>E(u,t+1,o));else{const u={};for(const[d,h]of Object.entries(e)){const y=H(d,h);y!==null&&typeof y=="object"?u[d]=E(y,t+1,o):u[d]=y}n=u}return o.delete(e),n},F=e=>{const t={};for(const[o,n]of Object.entries(e))if(L(o)||j(o)){const u=typeof n=="string"?n.length:typeof n=="number"?String(n).length:0;t[`${o}_length`]=u}else t[o]=E(n);return t},V=()=>{const e=new Date,t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),n=String(e.getSeconds()).padStart(2,"0"),u=String(e.getMilliseconds()).padStart(3,"0");return`${t}:${o}:${n}.${u}`},P=(e,t)=>t?(o,n)=>{const u=V(),d=n?F(n):{};console.log(`🔍 [${u}] [${e}] ${o}`,d)}:()=>{},I=(e,t,o)=>{const n=new Error(t);return n.name="BasisTheoryError",n.code=e,n.details=o,Error.captureStackTrace&&Error.captureStackTrace(n,I),n.toJSON=()=>({name:n.name,code:n.code,message:n.message,...n.details&&{details:n.details}}),n},x=(e,t)=>{const o=I("CONFIGURATION_ERROR",e,t);return o.name="ConfigurationError",o},q=()=>{if(typeof document>"u")return;const e=document.currentScript;if(e?.src)try{const t=new URL(e.src).origin;if(t.startsWith("https"))return t}catch{}},C=(e,t)=>{if(!e)return t;try{const o=new URL(t);return`${e}${o.pathname}`}catch{return t}},K=(e,t)=>{if(e)try{const o=new URL(t),{pathname:n}=o,u=n.replace(/\/web-elements\/basis-theory-sdk\.umd\.js$/,"/elements");return u===n?void 0:`${e}${u}`}catch{return}};function A(e){const{version:t="loader-0.1.0",onSdkReady:o,debug:n=!1,sdkSriHash:u=""}=e,d=P("BasisTheoryLoader",n),h=[];let y=null,f=!1,i=null,b=null,p=null,R=!1,S=e.sdkUrl;function J(){return y||(y=new Promise((l,c)=>{if(p=c,window.__BasisTheorySDK__){d("SDK already loaded, skipping script injection"),p=null,f=!0,l(),o?.();return}const m=document.createElement("script");m.src=S,m.async=!0,m.crossOrigin="anonymous",b=m,u&&(m.integrity=u),m.onload=()=>{b===m&&(p=null,f=!0,l(),o?.())},m.onerror=()=>{b===m&&(p=null,y=null,c(new Error(`Failed to load BasisTheory SDK from ${S}`)))},document.head.appendChild(m)}),y)}function W(){if(h.length===0)return[];d("Transforming queued commands for SDK",{count:h.length});const l=[];for(const c of h)c.type==="init"||c.type==="createElement"||l.push({method:c.type,args:c.args||[],resolve:()=>{},reject:m=>{console.error("[BasisTheory] Queued command failed:",c.type,m)}});return l}async function g(l,c){if(R)throw x("SDK instance has been destroyed. Create a new instance with BasisTheory()");if(i)return i;if(await y,!i){const m=W();d("Initializing SDK with queued commands",{queueLength:m.length});const r=window.__BasisTheorySDK__;if(!r||typeof r!="function")throw x("BasisTheory SDK not found at window.__BasisTheorySDK__");d("Found SDK function",{type:typeof r}),i=r(l,c,m),h.length=0}return i}const T=function(l,c){return R=!1,e.whitelabelElementsBaseUrl&&!c?.elementsBaseUrl&&(c={...c,elementsBaseUrl:e.whitelabelElementsBaseUrl},n&&console.log("[BasisTheory] Whitelabel elementsBaseUrl injected:",e.whitelabelElementsBaseUrl)),h.push({type:"init",apiKey:l,options:c,timestamp:Date.now()}),c?.elementsBaseUrl&&!y&&(S=`${c.elementsBaseUrl.replace(/\/elements\/?$/,"")}/web-elements/basis-theory-sdk.umd.js`,d("Derived SDK URL from elementsBaseUrl",{sdkUrl:S})),J(),{createElement(r,a){if(f&&i)return i.createElement(r,a);h.push({type:"createElement",args:[r,a],timestamp:Date.now()});let s=null;const k=[],z={get id(){return s?.id},get type(){return s?.type},get mounted(){return s?.mounted??!1},mount:async w=>(s=(await g(l,c)).createElement(r,a),k.forEach(({event:B,handler:G})=>{s.on(B,G)}),k.length=0,await s.mount(w)),on:(w,_)=>s?s.on(w,_):(k.push({event:w,handler:_}),()=>{const U=k.findIndex(B=>B.event===w&&B.handler===_);U!==-1&&k.splice(U,1)}),update:async(...w)=>{if(s)return s.update(...w)},unmount:()=>{s&&s.unmount()},focus:()=>{s&&s.focus()},blur:()=>{s&&s.blur()},clear:()=>{s&&s.clear()},setValueRef:async w=>{if(s?.setValueRef)return s.setValueRef(w);throw new Error("Element must be mounted before calling setValueRef")}};return r==="card"&&Object.defineProperties(z,{number:{get:()=>s?.number,enumerable:!0},expiryDate:{get:()=>s?.expiryDate,enumerable:!0},cvc:{get:()=>s?.cvc,enumerable:!0}}),z},async tokenize(r,a){return f&&i?i.tokenize(r,a):(await g(l,c)).tokenize(r,a)},updateThemeMode(r){if(f&&i)return i.updateThemeMode(r);h.push({type:"updateThemeMode",args:[r],timestamp:Date.now()})},async destroy(){d("Destroying loader / SDK instance",{sdkReady:f,hasInstance:!!i});const r=i&&typeof i.destroy=="function"?i.destroy():void 0;p&&(p(new Error("BasisTheory SDK destroyed before load completed")),p=null),b&&(b.remove(),b=null),i=null,f=!1,y=null,h.length=0,R=!0,S=e.sdkUrl,typeof window<"u"&&window.BasisTheory&&(window.BasisTheory.__sdkReady=!1);try{await r}catch(a){d("SDK destroy failed",{error:a.message})}},tokens:{async create(r){return f&&i?i.tokens.create(r):(await g(l,c)).tokens.create(r)},async retrieve(r,a){return f&&i?i.tokens.retrieve(r,a):(await g(l,c)).tokens.retrieve(r,a)},async update(r,a){return f&&i?i.tokens.update(r,a):(await g(l,c)).tokens.update(r,a)},async encrypt(r,a,s){return f&&i?i.tokens.encrypt(r,a,s):(await g(l,c)).tokens.encrypt(r,a,s)}},sessions:{async create(){return f&&i?i.sessions.create():(await g(l,c)).sessions.create()}},tokenIntents:{async create(r,a){return f&&i?i.tokenIntents.create(r,a):(await g(l,c)).tokenIntents.create(r,a)},async get(r,a){return f&&i?i.tokenIntents.get(r,a):(await g(l,c)).tokenIntents.get(r,a)}},proxy:(()=>{const r=a=>async s=>f&&i?i.proxy[a](s):(await g(l,c)).proxy[a](s);return{get:r("get"),post:r("post"),put:r("put"),patch:r("patch"),delete:r("delete")}})(),__queue:h,__loaderVersion:t}};return T.__sdkUrl=S,T.__version=t,Object.defineProperty(T,"__pending",{get(){return f?0:h.filter(l=>l.type==="init").length}}),T}if(typeof window<"u"){const e=typeof localStorage<"u"&&localStorage.getItem("bt_debug")==="true",t=P("BasisTheoryLoader",e),o=q(),n=C(o,"https://js.basistheory.com/3.0.0-beta.6/web-elements/basis-theory-sdk.umd.js"),u=(()=>{try{return new URL(n).origin!==new URL("https://js.basistheory.com/3.0.0-beta.6/web-elements/basis-theory-sdk.umd.js").origin}catch{return!1}})();u&&t("[BasisTheory] Whitelabel origin detected:",{detectedOrigin:o});const h={sdkUrl:n,version:"loader-0.1.0",debug:e,sdkSriHash:u?"":"sha384-u6tdmzH7U8jvH1J9rVNJE++zndN2+T6IRM3XPTRovHHOwgy4M8Gt4ZJr5k8mGjrC",whitelabelElementsBaseUrl:K(u?o:void 0,"https://js.basistheory.com/3.0.0-beta.6/web-elements/basis-theory-sdk.umd.js"),onSdkReady:()=>{window.BasisTheory.__sdkReady=!0,t("SDK loaded and ready")}},y=A(h);window.BasisTheory=y,window.BasisTheory.__loaderLoadTime=Date.now(),window.BasisTheory.__sdkReady=!1,t("SDK available at window.BasisTheory")}return $.createLoader=A,$})({});
|
package/dist/sri.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0",
|
|
3
3
|
"versions": {
|
|
4
|
-
"3.0.0-beta.
|
|
4
|
+
"3.0.0-beta.6": {
|
|
5
5
|
"umd": {
|
|
6
|
-
"hash": "sha384-
|
|
7
|
-
"url": "https://js.basistheory.com/3.0.0-beta.
|
|
8
|
-
"size":
|
|
6
|
+
"hash": "sha384-u6tdmzH7U8jvH1J9rVNJE++zndN2+T6IRM3XPTRovHHOwgy4M8Gt4ZJr5k8mGjrC",
|
|
7
|
+
"url": "https://js.basistheory.com/3.0.0-beta.6/web-elements/basis-theory-sdk.umd.js",
|
|
8
|
+
"size": 56070
|
|
9
9
|
},
|
|
10
10
|
"es": {
|
|
11
|
-
"hash": "sha384
|
|
12
|
-
"url": "https://js.basistheory.com/3.0.0-beta.
|
|
11
|
+
"hash": "sha384-/B451fXQpRFM2Q41vxixRknI3GdzzHfji6An2SKKzeT9ClW0vJX+V58Lxx6YxEl2",
|
|
12
|
+
"url": "https://js.basistheory.com/3.0.0-beta.6/web-elements/basis-theory-sdk.es.js",
|
|
13
13
|
"size": 108
|
|
14
14
|
},
|
|
15
15
|
"loader": {
|
|
16
|
-
"hash": "sha384-
|
|
17
|
-
"url": "https://js.basistheory.com/3.0.0-beta.
|
|
18
|
-
"size":
|
|
16
|
+
"hash": "sha384-YVVIT+jzHqQpY0XchGT/dpC37z15egSuXJxokiRETL+UU1DmOJIgYJ2tx50GLyy2",
|
|
17
|
+
"url": "https://js.basistheory.com/3.0.0-beta.6/web-elements/basis-theory.js",
|
|
18
|
+
"size": 7751
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
package/dist/stats.html
CHANGED
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"basis-theory-sdk.umd.js","children":[{"name":"home/runner/work/basistheory-elements/basistheory-elements/packages","children":[{"name":"shared/dist","children":[{"uid":"c4e2259b-1","name":"deep-sanitization.js"},{"uid":"c4e2259b-3","name":"debug-logger.js"},{"uid":"c4e2259b-5","name":"errors.js"},{"uid":"c4e2259b-7","name":"logger-context.js"},{"uid":"c4e2259b-9","name":"proxy-validation.js"}]},{"name":"postmessage/dist/client.js","uid":"c4e2259b-11"}]},{"name":"src","children":[{"name":"mounter/create-mounter.ts","uid":"c4e2259b-13"},{"name":"utils","children":[{"uid":"c4e2259b-15","name":"create-iframe.ts"},{"uid":"c4e2259b-17","name":"create-event-dispatcher.ts"},{"uid":"c4e2259b-27","name":"resolve-element-references.ts"},{"uid":"c4e2259b-31","name":"warn-unknown-keys.ts"},{"uid":"c4e2259b-33","name":"validate-sdk-config.ts"},{"uid":"c4e2259b-35","name":"validate-element-options.ts"}]},{"name":"elements","children":[{"uid":"c4e2259b-19","name":"create-card-number.ts"},{"uid":"c4e2259b-21","name":"create-cvv.ts"},{"uid":"c4e2259b-23","name":"create-expiry.ts"},{"uid":"c4e2259b-25","name":"create-text.ts"},{"uid":"c4e2259b-43","name":"create-card.ts"},{"uid":"c4e2259b-45","name":"create-copy-button.ts"}]},{"name":"theme/default-theme.ts","uid":"c4e2259b-29"},{"uid":"c4e2259b-37","name":"BasisTheory.ts"},{"uid":"c4e2259b-39","name":"version.ts"},{"uid":"c4e2259b-41","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"c4e2259b-1":{"renderedLength":5852,"gzipLength":1790,"brotliLength":1544,"metaUid":"c4e2259b-0"},"c4e2259b-3":{"renderedLength":2608,"gzipLength":1059,"brotliLength":903,"metaUid":"c4e2259b-2"},"c4e2259b-5":{"renderedLength":2628,"gzipLength":748,"brotliLength":641,"metaUid":"c4e2259b-4"},"c4e2259b-7":{"renderedLength":341,"gzipLength":224,"brotliLength":152,"metaUid":"c4e2259b-6"},"c4e2259b-9":{"renderedLength":14643,"gzipLength":4140,"brotliLength":3559,"metaUid":"c4e2259b-8"},"c4e2259b-11":{"renderedLength":12508,"gzipLength":3383,"brotliLength":2860,"metaUid":"c4e2259b-10"},"c4e2259b-13":{"renderedLength":484,"gzipLength":223,"brotliLength":164,"metaUid":"c4e2259b-12"},"c4e2259b-15":{"renderedLength":389,"gzipLength":200,"brotliLength":148,"metaUid":"c4e2259b-14"},"c4e2259b-17":{"renderedLength":3268,"gzipLength":837,"brotliLength":700,"metaUid":"c4e2259b-16"},"c4e2259b-19":{"renderedLength":7773,"gzipLength":1875,"brotliLength":1606,"metaUid":"c4e2259b-18"},"c4e2259b-21":{"renderedLength":6753,"gzipLength":1720,"brotliLength":1471,"metaUid":"c4e2259b-20"},"c4e2259b-23":{"renderedLength":6552,"gzipLength":1640,"brotliLength":1403,"metaUid":"c4e2259b-22"},"c4e2259b-25":{"renderedLength":8033,"gzipLength":2043,"brotliLength":1737,"metaUid":"c4e2259b-24"},"c4e2259b-27":{"renderedLength":1131,"gzipLength":439,"brotliLength":360,"metaUid":"c4e2259b-26"},"c4e2259b-29":{"renderedLength":4104,"gzipLength":1062,"brotliLength":915,"metaUid":"c4e2259b-28"},"c4e2259b-31":{"renderedLength":590,"gzipLength":285,"brotliLength":255,"metaUid":"c4e2259b-30"},"c4e2259b-33":{"renderedLength":3791,"gzipLength":1035,"brotliLength":894,"metaUid":"c4e2259b-32"},"c4e2259b-35":{"renderedLength":4736,"gzipLength":1171,"brotliLength":991,"metaUid":"c4e2259b-34"},"c4e2259b-37":{"renderedLength":26744,"gzipLength":5153,"brotliLength":4459,"metaUid":"c4e2259b-36"},"c4e2259b-39":{"renderedLength":85,"gzipLength":96,"brotliLength":87,"metaUid":"c4e2259b-38"},"c4e2259b-41":{"renderedLength":93,"gzipLength":93,"brotliLength":75,"metaUid":"c4e2259b-40"},"c4e2259b-43":{"renderedLength":9434,"gzipLength":2194,"brotliLength":1889,"metaUid":"c4e2259b-42"},"c4e2259b-45":{"renderedLength":8282,"gzipLength":2172,"brotliLength":1850,"metaUid":"c4e2259b-44"}},"nodeMetas":{"c4e2259b-0":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/deep-sanitization.js","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-1"},"imported":[],"importedBy":[{"uid":"c4e2259b-47"},{"uid":"c4e2259b-2"}]},"c4e2259b-2":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/debug-logger.js","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-3"},"imported":[{"uid":"c4e2259b-0"}],"importedBy":[{"uid":"c4e2259b-47"},{"uid":"c4e2259b-6"}]},"c4e2259b-4":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/errors.js","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-5"},"imported":[],"importedBy":[{"uid":"c4e2259b-47"},{"uid":"c4e2259b-51"},{"uid":"c4e2259b-8"}]},"c4e2259b-6":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/logger-context.js","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-7"},"imported":[{"uid":"c4e2259b-2"}],"importedBy":[{"uid":"c4e2259b-47"}]},"c4e2259b-8":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/proxy-validation.js","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-9"},"imported":[{"uid":"c4e2259b-4"}],"importedBy":[{"uid":"c4e2259b-47"}]},"c4e2259b-10":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/client.js","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-11"},"imported":[{"uid":"c4e2259b-47"}],"importedBy":[{"uid":"c4e2259b-46"}]},"c4e2259b-12":{"id":"/src/mounter/create-mounter.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-13"},"imported":[],"importedBy":[{"uid":"c4e2259b-18"},{"uid":"c4e2259b-20"},{"uid":"c4e2259b-22"},{"uid":"c4e2259b-24"},{"uid":"c4e2259b-42"},{"uid":"c4e2259b-44"}]},"c4e2259b-14":{"id":"/src/utils/create-iframe.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-15"},"imported":[],"importedBy":[{"uid":"c4e2259b-18"},{"uid":"c4e2259b-20"},{"uid":"c4e2259b-22"},{"uid":"c4e2259b-24"},{"uid":"c4e2259b-42"},{"uid":"c4e2259b-44"}]},"c4e2259b-16":{"id":"/src/utils/create-event-dispatcher.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-17"},"imported":[],"importedBy":[{"uid":"c4e2259b-18"},{"uid":"c4e2259b-20"},{"uid":"c4e2259b-22"},{"uid":"c4e2259b-24"},{"uid":"c4e2259b-42"},{"uid":"c4e2259b-44"}]},"c4e2259b-18":{"id":"/src/elements/create-card-number.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-19"},"imported":[{"uid":"c4e2259b-46"},{"uid":"c4e2259b-47"},{"uid":"c4e2259b-12"},{"uid":"c4e2259b-14"},{"uid":"c4e2259b-16"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-20":{"id":"/src/elements/create-cvv.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-21"},"imported":[{"uid":"c4e2259b-46"},{"uid":"c4e2259b-47"},{"uid":"c4e2259b-12"},{"uid":"c4e2259b-14"},{"uid":"c4e2259b-16"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-22":{"id":"/src/elements/create-expiry.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-23"},"imported":[{"uid":"c4e2259b-46"},{"uid":"c4e2259b-47"},{"uid":"c4e2259b-12"},{"uid":"c4e2259b-14"},{"uid":"c4e2259b-16"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-24":{"id":"/src/elements/create-text.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-25"},"imported":[{"uid":"c4e2259b-46"},{"uid":"c4e2259b-47"},{"uid":"c4e2259b-12"},{"uid":"c4e2259b-14"},{"uid":"c4e2259b-16"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-26":{"id":"/src/utils/resolve-element-references.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-27"},"imported":[{"uid":"c4e2259b-47"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-28":{"id":"/src/theme/default-theme.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-29"},"imported":[],"importedBy":[{"uid":"c4e2259b-32"}]},"c4e2259b-30":{"id":"/src/utils/warn-unknown-keys.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-31"},"imported":[],"importedBy":[{"uid":"c4e2259b-32"},{"uid":"c4e2259b-34"}]},"c4e2259b-32":{"id":"/src/utils/validate-sdk-config.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-33"},"imported":[{"uid":"c4e2259b-47"},{"uid":"c4e2259b-28"},{"uid":"c4e2259b-30"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-34":{"id":"/src/utils/validate-element-options.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-35"},"imported":[{"uid":"c4e2259b-47"},{"uid":"c4e2259b-30"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-36":{"id":"/src/BasisTheory.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-37"},"imported":[{"uid":"c4e2259b-46"},{"uid":"c4e2259b-47"},{"uid":"c4e2259b-18"},{"uid":"c4e2259b-20"},{"uid":"c4e2259b-22"},{"uid":"c4e2259b-24"},{"uid":"c4e2259b-26"},{"uid":"c4e2259b-32"},{"uid":"c4e2259b-34"},{"uid":"c4e2259b-42","dynamic":true},{"uid":"c4e2259b-44","dynamic":true}],"importedBy":[{"uid":"c4e2259b-40"}]},"c4e2259b-38":{"id":"/src/version.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-39"},"imported":[],"importedBy":[{"uid":"c4e2259b-40"}]},"c4e2259b-40":{"id":"/src/index.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-41"},"imported":[{"uid":"c4e2259b-36"},{"uid":"c4e2259b-38"}],"importedBy":[],"isEntry":true},"c4e2259b-42":{"id":"/src/elements/create-card.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-43"},"imported":[{"uid":"c4e2259b-46"},{"uid":"c4e2259b-47"},{"uid":"c4e2259b-12"},{"uid":"c4e2259b-14"},{"uid":"c4e2259b-16"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-44":{"id":"/src/elements/create-copy-button.ts","moduleParts":{"basis-theory-sdk.umd.js":"c4e2259b-45"},"imported":[{"uid":"c4e2259b-46"},{"uid":"c4e2259b-47"},{"uid":"c4e2259b-12"},{"uid":"c4e2259b-14"},{"uid":"c4e2259b-16"}],"importedBy":[{"uid":"c4e2259b-36"}]},"c4e2259b-46":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/index.js","moduleParts":{},"imported":[{"uid":"c4e2259b-10"},{"uid":"c4e2259b-48"},{"uid":"c4e2259b-49"},{"uid":"c4e2259b-50"}],"importedBy":[{"uid":"c4e2259b-36"},{"uid":"c4e2259b-18"},{"uid":"c4e2259b-20"},{"uid":"c4e2259b-22"},{"uid":"c4e2259b-24"},{"uid":"c4e2259b-42"},{"uid":"c4e2259b-44"}]},"c4e2259b-47":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/index.js","moduleParts":{},"imported":[{"uid":"c4e2259b-2"},{"uid":"c4e2259b-0"},{"uid":"c4e2259b-51"},{"uid":"c4e2259b-52"},{"uid":"c4e2259b-6"},{"uid":"c4e2259b-4"},{"uid":"c4e2259b-8"}],"importedBy":[{"uid":"c4e2259b-36"},{"uid":"c4e2259b-18"},{"uid":"c4e2259b-20"},{"uid":"c4e2259b-22"},{"uid":"c4e2259b-24"},{"uid":"c4e2259b-26"},{"uid":"c4e2259b-32"},{"uid":"c4e2259b-34"},{"uid":"c4e2259b-42"},{"uid":"c4e2259b-44"},{"uid":"c4e2259b-10"},{"uid":"c4e2259b-48"}]},"c4e2259b-48":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/server.js","moduleParts":{},"imported":[{"uid":"c4e2259b-47"}],"importedBy":[{"uid":"c4e2259b-46"}]},"c4e2259b-49":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/types.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4e2259b-46"}]},"c4e2259b-50":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/event-map.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4e2259b-46"}]},"c4e2259b-51":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/api-url-resolver.js","moduleParts":{},"imported":[{"uid":"c4e2259b-4"}],"importedBy":[{"uid":"c4e2259b-47"}]},"c4e2259b-52":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/generate-id.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4e2259b-47"}]}},"env":{"rollup":"4.52.5"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"basis-theory-sdk.umd.js","children":[{"name":"home/runner/work/basistheory-elements/basistheory-elements/packages","children":[{"name":"shared/dist","children":[{"uid":"fc8aba3f-1","name":"deep-sanitization.js"},{"uid":"fc8aba3f-3","name":"debug-logger.js"},{"uid":"fc8aba3f-5","name":"generate-id.js"},{"uid":"fc8aba3f-7","name":"logger-context.js"},{"uid":"fc8aba3f-9","name":"errors.js"},{"uid":"fc8aba3f-11","name":"proxy-validation.js"}]},{"name":"postmessage/dist/client.js","uid":"fc8aba3f-13"}]},{"name":"src","children":[{"name":"mounter/create-mounter.ts","uid":"fc8aba3f-15"},{"name":"utils","children":[{"uid":"fc8aba3f-17","name":"bind-coordinator-port.ts"},{"uid":"fc8aba3f-19","name":"create-iframe.ts"},{"uid":"fc8aba3f-21","name":"create-event-dispatcher.ts"},{"uid":"fc8aba3f-31","name":"resolve-element-references.ts"},{"uid":"fc8aba3f-35","name":"warn-unknown-keys.ts"},{"uid":"fc8aba3f-37","name":"validate-sdk-config.ts"},{"uid":"fc8aba3f-39","name":"validate-element-options.ts"}]},{"name":"elements","children":[{"uid":"fc8aba3f-23","name":"create-card-number.ts"},{"uid":"fc8aba3f-25","name":"create-cvv.ts"},{"uid":"fc8aba3f-27","name":"create-expiry.ts"},{"uid":"fc8aba3f-29","name":"create-text.ts"},{"uid":"fc8aba3f-47","name":"create-card.ts"},{"uid":"fc8aba3f-49","name":"create-copy-button.ts"},{"uid":"fc8aba3f-51","name":"create-card-display.ts"}]},{"name":"theme/default-theme.ts","uid":"fc8aba3f-33"},{"uid":"fc8aba3f-41","name":"BasisTheory.ts"},{"uid":"fc8aba3f-43","name":"version.ts"},{"uid":"fc8aba3f-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"fc8aba3f-1":{"renderedLength":5897,"gzipLength":1806,"brotliLength":1558,"metaUid":"fc8aba3f-0"},"fc8aba3f-3":{"renderedLength":2608,"gzipLength":1059,"brotliLength":903,"metaUid":"fc8aba3f-2"},"fc8aba3f-5":{"renderedLength":1334,"gzipLength":645,"brotliLength":531,"metaUid":"fc8aba3f-4"},"fc8aba3f-7":{"renderedLength":341,"gzipLength":224,"brotliLength":152,"metaUid":"fc8aba3f-6"},"fc8aba3f-9":{"renderedLength":2628,"gzipLength":748,"brotliLength":641,"metaUid":"fc8aba3f-8"},"fc8aba3f-11":{"renderedLength":14643,"gzipLength":4140,"brotliLength":3559,"metaUid":"fc8aba3f-10"},"fc8aba3f-13":{"renderedLength":12970,"gzipLength":3468,"brotliLength":2933,"metaUid":"fc8aba3f-12"},"fc8aba3f-15":{"renderedLength":484,"gzipLength":223,"brotliLength":164,"metaUid":"fc8aba3f-14"},"fc8aba3f-17":{"renderedLength":1590,"gzipLength":525,"brotliLength":435,"metaUid":"fc8aba3f-16"},"fc8aba3f-19":{"renderedLength":389,"gzipLength":200,"brotliLength":148,"metaUid":"fc8aba3f-18"},"fc8aba3f-21":{"renderedLength":3268,"gzipLength":837,"brotliLength":700,"metaUid":"fc8aba3f-20"},"fc8aba3f-23":{"renderedLength":8028,"gzipLength":1907,"brotliLength":1639,"metaUid":"fc8aba3f-22"},"fc8aba3f-25":{"renderedLength":7008,"gzipLength":1755,"brotliLength":1506,"metaUid":"fc8aba3f-24"},"fc8aba3f-27":{"renderedLength":6807,"gzipLength":1674,"brotliLength":1434,"metaUid":"fc8aba3f-26"},"fc8aba3f-29":{"renderedLength":8288,"gzipLength":2077,"brotliLength":1774,"metaUid":"fc8aba3f-28"},"fc8aba3f-31":{"renderedLength":1131,"gzipLength":439,"brotliLength":360,"metaUid":"fc8aba3f-30"},"fc8aba3f-33":{"renderedLength":4104,"gzipLength":1062,"brotliLength":915,"metaUid":"fc8aba3f-32"},"fc8aba3f-35":{"renderedLength":590,"gzipLength":285,"brotliLength":255,"metaUid":"fc8aba3f-34"},"fc8aba3f-37":{"renderedLength":5967,"gzipLength":1412,"brotliLength":1242,"metaUid":"fc8aba3f-36"},"fc8aba3f-39":{"renderedLength":4864,"gzipLength":1199,"brotliLength":1016,"metaUid":"fc8aba3f-38"},"fc8aba3f-41":{"renderedLength":32632,"gzipLength":6419,"brotliLength":5567,"metaUid":"fc8aba3f-40"},"fc8aba3f-43":{"renderedLength":85,"gzipLength":96,"brotliLength":89,"metaUid":"fc8aba3f-42"},"fc8aba3f-45":{"renderedLength":93,"gzipLength":93,"brotliLength":75,"metaUid":"fc8aba3f-44"},"fc8aba3f-47":{"renderedLength":9605,"gzipLength":2183,"brotliLength":1878,"metaUid":"fc8aba3f-46"},"fc8aba3f-49":{"renderedLength":9209,"gzipLength":2366,"brotliLength":2004,"metaUid":"fc8aba3f-48"},"fc8aba3f-51":{"renderedLength":10072,"gzipLength":2565,"brotliLength":2181,"metaUid":"fc8aba3f-50"}},"nodeMetas":{"fc8aba3f-0":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/deep-sanitization.js","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-1"},"imported":[],"importedBy":[{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-2"}]},"fc8aba3f-2":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/debug-logger.js","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-3"},"imported":[{"uid":"fc8aba3f-0"}],"importedBy":[{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-6"}]},"fc8aba3f-4":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/generate-id.js","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-5"},"imported":[],"importedBy":[{"uid":"fc8aba3f-53"}]},"fc8aba3f-6":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/logger-context.js","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-7"},"imported":[{"uid":"fc8aba3f-2"}],"importedBy":[{"uid":"fc8aba3f-53"}]},"fc8aba3f-8":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/errors.js","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-9"},"imported":[],"importedBy":[{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-10"}]},"fc8aba3f-10":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/proxy-validation.js","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-11"},"imported":[{"uid":"fc8aba3f-8"}],"importedBy":[{"uid":"fc8aba3f-53"}]},"fc8aba3f-12":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/client.js","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-13"},"imported":[{"uid":"fc8aba3f-53"}],"importedBy":[{"uid":"fc8aba3f-52"}]},"fc8aba3f-14":{"id":"/src/mounter/create-mounter.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-15"},"imported":[],"importedBy":[{"uid":"fc8aba3f-22"},{"uid":"fc8aba3f-24"},{"uid":"fc8aba3f-26"},{"uid":"fc8aba3f-28"},{"uid":"fc8aba3f-46"},{"uid":"fc8aba3f-48"},{"uid":"fc8aba3f-50"}]},"fc8aba3f-16":{"id":"/src/utils/bind-coordinator-port.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-17"},"imported":[{"uid":"fc8aba3f-53"}],"importedBy":[{"uid":"fc8aba3f-22"},{"uid":"fc8aba3f-24"},{"uid":"fc8aba3f-26"},{"uid":"fc8aba3f-28"},{"uid":"fc8aba3f-46"},{"uid":"fc8aba3f-48"},{"uid":"fc8aba3f-50"}]},"fc8aba3f-18":{"id":"/src/utils/create-iframe.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-19"},"imported":[],"importedBy":[{"uid":"fc8aba3f-22"},{"uid":"fc8aba3f-24"},{"uid":"fc8aba3f-26"},{"uid":"fc8aba3f-28"},{"uid":"fc8aba3f-46"},{"uid":"fc8aba3f-48"},{"uid":"fc8aba3f-50"}]},"fc8aba3f-20":{"id":"/src/utils/create-event-dispatcher.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-21"},"imported":[],"importedBy":[{"uid":"fc8aba3f-22"},{"uid":"fc8aba3f-24"},{"uid":"fc8aba3f-26"},{"uid":"fc8aba3f-28"},{"uid":"fc8aba3f-46"},{"uid":"fc8aba3f-48"}]},"fc8aba3f-22":{"id":"/src/elements/create-card-number.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-23"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-14"},{"uid":"fc8aba3f-16"},{"uid":"fc8aba3f-18"},{"uid":"fc8aba3f-20"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-24":{"id":"/src/elements/create-cvv.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-25"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-14"},{"uid":"fc8aba3f-16"},{"uid":"fc8aba3f-18"},{"uid":"fc8aba3f-20"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-26":{"id":"/src/elements/create-expiry.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-27"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-14"},{"uid":"fc8aba3f-16"},{"uid":"fc8aba3f-18"},{"uid":"fc8aba3f-20"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-28":{"id":"/src/elements/create-text.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-29"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-14"},{"uid":"fc8aba3f-16"},{"uid":"fc8aba3f-18"},{"uid":"fc8aba3f-20"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-30":{"id":"/src/utils/resolve-element-references.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-31"},"imported":[{"uid":"fc8aba3f-53"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-32":{"id":"/src/theme/default-theme.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-33"},"imported":[],"importedBy":[{"uid":"fc8aba3f-36"}]},"fc8aba3f-34":{"id":"/src/utils/warn-unknown-keys.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-35"},"imported":[],"importedBy":[{"uid":"fc8aba3f-36"},{"uid":"fc8aba3f-38"}]},"fc8aba3f-36":{"id":"/src/utils/validate-sdk-config.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-37"},"imported":[{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-32"},{"uid":"fc8aba3f-34"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-38":{"id":"/src/utils/validate-element-options.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-39"},"imported":[{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-34"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-40":{"id":"/src/BasisTheory.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-41"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-22"},{"uid":"fc8aba3f-24"},{"uid":"fc8aba3f-26"},{"uid":"fc8aba3f-28"},{"uid":"fc8aba3f-30"},{"uid":"fc8aba3f-36"},{"uid":"fc8aba3f-38"},{"uid":"fc8aba3f-46","dynamic":true},{"uid":"fc8aba3f-48","dynamic":true},{"uid":"fc8aba3f-50","dynamic":true}],"importedBy":[{"uid":"fc8aba3f-44"}]},"fc8aba3f-42":{"id":"/src/version.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-43"},"imported":[],"importedBy":[{"uid":"fc8aba3f-44"}]},"fc8aba3f-44":{"id":"/src/index.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-45"},"imported":[{"uid":"fc8aba3f-40"},{"uid":"fc8aba3f-42"}],"importedBy":[],"isEntry":true},"fc8aba3f-46":{"id":"/src/elements/create-card.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-47"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-14"},{"uid":"fc8aba3f-16"},{"uid":"fc8aba3f-18"},{"uid":"fc8aba3f-20"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-48":{"id":"/src/elements/create-copy-button.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-49"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-14"},{"uid":"fc8aba3f-16"},{"uid":"fc8aba3f-18"},{"uid":"fc8aba3f-20"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-50":{"id":"/src/elements/create-card-display.ts","moduleParts":{"basis-theory-sdk.umd.js":"fc8aba3f-51"},"imported":[{"uid":"fc8aba3f-52"},{"uid":"fc8aba3f-53"},{"uid":"fc8aba3f-14"},{"uid":"fc8aba3f-16"},{"uid":"fc8aba3f-18"}],"importedBy":[{"uid":"fc8aba3f-40"}]},"fc8aba3f-52":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/index.js","moduleParts":{},"imported":[{"uid":"fc8aba3f-12"},{"uid":"fc8aba3f-54"},{"uid":"fc8aba3f-55"},{"uid":"fc8aba3f-56"}],"importedBy":[{"uid":"fc8aba3f-40"},{"uid":"fc8aba3f-22"},{"uid":"fc8aba3f-24"},{"uid":"fc8aba3f-26"},{"uid":"fc8aba3f-28"},{"uid":"fc8aba3f-46"},{"uid":"fc8aba3f-48"},{"uid":"fc8aba3f-50"}]},"fc8aba3f-53":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/index.js","moduleParts":{},"imported":[{"uid":"fc8aba3f-2"},{"uid":"fc8aba3f-0"},{"uid":"fc8aba3f-57"},{"uid":"fc8aba3f-4"},{"uid":"fc8aba3f-6"},{"uid":"fc8aba3f-8"},{"uid":"fc8aba3f-10"}],"importedBy":[{"uid":"fc8aba3f-40"},{"uid":"fc8aba3f-22"},{"uid":"fc8aba3f-24"},{"uid":"fc8aba3f-26"},{"uid":"fc8aba3f-28"},{"uid":"fc8aba3f-30"},{"uid":"fc8aba3f-36"},{"uid":"fc8aba3f-38"},{"uid":"fc8aba3f-46"},{"uid":"fc8aba3f-48"},{"uid":"fc8aba3f-50"},{"uid":"fc8aba3f-12"},{"uid":"fc8aba3f-54"},{"uid":"fc8aba3f-16"}]},"fc8aba3f-54":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/server.js","moduleParts":{},"imported":[{"uid":"fc8aba3f-53"}],"importedBy":[{"uid":"fc8aba3f-52"}]},"fc8aba3f-55":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/types.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"fc8aba3f-52"}]},"fc8aba3f-56":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/event-map.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"fc8aba3f-52"}]},"fc8aba3f-57":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/api-url-resolver.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"fc8aba3f-53"}]}},"env":{"rollup":"4.62.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/web-elements",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.6",
|
|
4
4
|
"description": "Secure, PCI-compliant elements for creating payment input forms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/basis-theory-sdk.umd.js",
|
|
7
7
|
"module": "./dist/basis-theory-sdk.es.js",
|
|
8
|
-
"types": "./dist/
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./dist/basis-theory-sdk.es.js",
|
|
12
12
|
"require": "./dist/basis-theory-sdk.umd.js",
|
|
13
|
-
"types": "./dist/
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite",
|
|
24
|
-
"build": "vite build &&
|
|
24
|
+
"build": "vite build && node ../../scripts/transform-sri-manifest.js",
|
|
25
25
|
"build:loader": "vite build --config vite.config.loader.ts",
|
|
26
26
|
"build:all": "npm run build && npm run build:loader && node ../../scripts/add-loader-sri.js",
|
|
27
27
|
"test": "vitest",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"url": "https://github.com/basis-theory/basistheory-elements",
|
|
48
48
|
"directory": "packages/web-elements"
|
|
49
49
|
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@basis-theory-elements/api-client": "3.0.0-beta.4",
|
|
52
|
-
"@basis-theory-elements/postmessage": "3.0.0-beta.4",
|
|
53
|
-
"@basis-theory-elements/shared": "3.0.0-beta.4",
|
|
54
|
-
"@basis-theory-elements/validation": "3.0.0-beta.4"
|
|
55
|
-
},
|
|
56
50
|
"devDependencies": {
|
|
51
|
+
"@basis-theory-elements/api-client": "3.0.0-beta.6",
|
|
52
|
+
"@basis-theory-elements/postmessage": "3.0.0-beta.6",
|
|
53
|
+
"@basis-theory-elements/shared": "3.0.0-beta.6",
|
|
54
|
+
"@basis-theory-elements/validation": "3.0.0-beta.6",
|
|
55
|
+
"@microsoft/api-extractor": "^7.58.9",
|
|
57
56
|
"@types/node": "^20.0.0",
|
|
58
57
|
"jsdom": "^24.0.0",
|
|
59
58
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
60
59
|
"typescript": "^5.0.0",
|
|
61
|
-
"vite": "^
|
|
60
|
+
"vite": "^6.4.3",
|
|
61
|
+
"vite-plugin-dts": "^5.0.2",
|
|
62
62
|
"vite-plugin-manifest-sri": "^0.2.0",
|
|
63
|
-
"vitest": "^
|
|
63
|
+
"vitest": "^3.2.6"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BasisTheory API Client
|
|
3
|
-
*
|
|
4
|
-
* Provides tokenization, BIN lookup, and proxy services
|
|
5
|
-
*/
|
|
6
|
-
import type { BasisTheoryClient, HttpClientConfig } from './types';
|
|
7
|
-
/**
|
|
8
|
-
* Create BasisTheory API client
|
|
9
|
-
*/
|
|
10
|
-
export declare const createBasisTheoryClient: (apiKey: string, options?: Partial<HttpClientConfig>) => BasisTheoryClient;
|
|
11
|
-
//# sourceMappingURL=api-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../../../api-client/src/api-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,KAAK,EACV,iBAAiB,EAEjB,gBAAgB,EAKjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,EACd,UAAS,OAAO,CAAC,gBAAgB,CAAM,KACtC,iBAmMF,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BIN enrichment API → BinInfo (co-badge networks, etc.)
|
|
3
|
-
*/
|
|
4
|
-
import type { BinInfo } from './types';
|
|
5
|
-
/** Raw card enrichment response */
|
|
6
|
-
export interface CardEnrichmentApiResponse {
|
|
7
|
-
brand?: string;
|
|
8
|
-
funding?: string;
|
|
9
|
-
segment?: string;
|
|
10
|
-
issuer?: {
|
|
11
|
-
country?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
};
|
|
14
|
-
binRange?: Array<{
|
|
15
|
-
binMin?: string;
|
|
16
|
-
binMax?: string;
|
|
17
|
-
}>;
|
|
18
|
-
additional?: Array<{
|
|
19
|
-
brand?: string;
|
|
20
|
-
funding?: string;
|
|
21
|
-
segment?: string;
|
|
22
|
-
issuer?: {
|
|
23
|
-
country?: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
};
|
|
26
|
-
binRange?: Array<{
|
|
27
|
-
binMin?: string;
|
|
28
|
-
binMax?: string;
|
|
29
|
-
}>;
|
|
30
|
-
}>;
|
|
31
|
-
}
|
|
32
|
-
export declare const normalizeCardBrand: (brand: string) => string;
|
|
33
|
-
export declare const normalizeFundingType: (funding?: string) => "debit" | "credit" | "prepaid" | "unknown";
|
|
34
|
-
export declare const transformCardEnrichmentToBinInfo: (apiResponse: CardEnrichmentApiResponse, bin: string) => BinInfo;
|
|
35
|
-
//# sourceMappingURL=bin-lookup-transform.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bin-lookup-transform.d.ts","sourceRoot":"","sources":["../../../../api-client/src/bin-lookup-transform.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAyC,MAAM,SAAS,CAAC;AAE9E,mCAAmC;AACnC,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,UAAU,CAAC,EAAE,KAAK,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE;YAAE,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC;YAAE,MAAM,CAAC,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACxD,CAAC,CAAC;CACJ;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,MACN,CAAC;AAE9C,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,KACf,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAMnC,CAAC;AAaF,eAAO,MAAM,gCAAgC,GAC3C,aAAa,yBAAyB,EACtC,KAAK,MAAM,KACV,OA4CF,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP Client with retry, timeout, and caching
|
|
3
|
-
*/
|
|
4
|
-
import type { DebugLogger } from '@basis-theory-elements/shared';
|
|
5
|
-
import type { HttpClientConfig, HttpResponse, RequestOptions } from './types';
|
|
6
|
-
/**
|
|
7
|
-
* Create HTTP client with retry, timeout, and caching
|
|
8
|
-
*/
|
|
9
|
-
export declare const createHttpClient: (config: HttpClientConfig) => {
|
|
10
|
-
/**
|
|
11
|
-
* Make HTTP request
|
|
12
|
-
*/
|
|
13
|
-
request<T = unknown>(url: string, options?: RequestOptions, log?: DebugLogger): Promise<HttpResponse<T>>;
|
|
14
|
-
/**
|
|
15
|
-
* Clear cache
|
|
16
|
-
*/
|
|
17
|
-
clearCache(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Get cache size
|
|
20
|
-
*/
|
|
21
|
-
getCacheSize(): number;
|
|
22
|
-
};
|
|
23
|
-
export type HttpClient = ReturnType<typeof createHttpClient>;
|
|
24
|
-
//# sourceMappingURL=http-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../../api-client/src/http-client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAEV,gBAAgB,EAEhB,YAAY,EACZ,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,gBAAgB;IAkSrD;;OAEG;YACW,CAAC,iBACR,MAAM,YACF,cAAc,QACjB,WAAW,GAChB,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAmE3B;;OAEG;kBACW,IAAI;IAIlB;;OAEG;oBACa,MAAM;CAIzB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @basis-theory-elements/api-client
|
|
3
|
-
*
|
|
4
|
-
* Standalone HTTP client for BasisTheory API with tokenization, BIN lookup, and proxy
|
|
5
|
-
*/
|
|
6
|
-
export { createBasisTheoryClient } from './api-client';
|
|
7
|
-
export { createHttpClient } from './http-client';
|
|
8
|
-
export type { BasisTheoryClient, BinRangeSegment, BinInfo, NetworkBinRangeEntry, CacheEntry, HttpClientConfig, HttpError, HttpResponse, ProxyRequest, RequestOptions, Token, TokenCreateRequest, TokenData, TokenIntent, TokenIntentCreateRequest, TokenUpdateRequest, TokenizeRequest, DeviceInfo, NetworkInformation, } from './types';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api-client/src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,YAAY,EAEV,iBAAiB,EACjB,eAAe,EAEf,OAAO,EACP,oBAAoB,EAEpB,UAAU,EAEV,gBAAgB,EAChB,SAAS,EAET,YAAY,EAEZ,YAAY,EACZ,cAAc,EAEd,KAAK,EACL,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,EAEf,UAAU,EACV,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sessions Service
|
|
3
|
-
*
|
|
4
|
-
* Handles session creation for temporary elevated access to tokenized data
|
|
5
|
-
* Sessions must be authorized on the backend by a Private Application
|
|
6
|
-
*/
|
|
7
|
-
import type { HttpClient } from '../http-client';
|
|
8
|
-
import type { RequestOptions, Session } from '../types';
|
|
9
|
-
/**
|
|
10
|
-
* Sessions Service Interface
|
|
11
|
-
*/
|
|
12
|
-
export interface SessionsService {
|
|
13
|
-
create(options?: RequestOptions): Promise<Session>;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create sessions service
|
|
17
|
-
*/
|
|
18
|
-
export declare const createSessionsService: (httpClient: HttpClient) => SessionsService;
|
|
19
|
-
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../../../api-client/src/services/sessions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,YAAY,UAAU,KACrB,eAmDF,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token Intents Service
|
|
3
|
-
*
|
|
4
|
-
* Handles token intent operations (create, get)
|
|
5
|
-
* Token Intents are short-lived placeholders for sensitive data validation
|
|
6
|
-
*/
|
|
7
|
-
import type { HttpClient } from '../http-client';
|
|
8
|
-
import type { RequestOptions, TokenIntent, TokenIntentCreateRequest } from '../types';
|
|
9
|
-
export interface TokenIntentsService {
|
|
10
|
-
create(data: TokenIntentCreateRequest, options?: RequestOptions): Promise<TokenIntent>;
|
|
11
|
-
get(id: string, options?: RequestOptions): Promise<TokenIntent>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Create token intents service bound to HTTP client
|
|
15
|
-
*/
|
|
16
|
-
export declare const createTokenIntentsService: (httpClient: HttpClient) => TokenIntentsService;
|
|
17
|
-
//# sourceMappingURL=token-intents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-intents.d.ts","sourceRoot":"","sources":["../../../../../api-client/src/services/token-intents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAalB,MAAM,WAAW,mBAAmB;IAClC,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,WAAW,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACjE;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,GACpC,YAAY,UAAU,KACrB,mBA4DF,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tokens Service
|
|
3
|
-
*
|
|
4
|
-
* Handles all token-related API operations (CRUD)
|
|
5
|
-
* Uses snake_case to match BasisTheory API directly
|
|
6
|
-
* Separated from main API client to keep bundle size lean
|
|
7
|
-
*/
|
|
8
|
-
import type { HttpClient } from '../http-client';
|
|
9
|
-
import type { RequestOptions, Token, TokenCreateRequest, TokenUpdateRequest } from '../types';
|
|
10
|
-
export interface TokensService {
|
|
11
|
-
create(data: TokenCreateRequest, options?: RequestOptions): Promise<Token>;
|
|
12
|
-
update(id: string, data: TokenUpdateRequest, options?: RequestOptions): Promise<Token>;
|
|
13
|
-
retrieve(id: string, options?: RequestOptions): Promise<Token>;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create tokens service bound to HTTP client
|
|
17
|
-
*/
|
|
18
|
-
export declare const createTokensService: (httpClient: HttpClient) => TokensService;
|
|
19
|
-
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../../api-client/src/services/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,cAAc,EACd,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAalB,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3E,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,CAAC;IAClB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CAChE;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,YAAY,UAAU,KAAG,aAsH5D,CAAC"}
|