@basis-theory/web-elements 3.0.0-beta.2 → 3.0.0-beta.3
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/README.md +237 -562
- package/dist/.vite/manifest.json +7 -7
- package/dist/basis-theory-sdk.es.js +1 -1
- package/dist/basis-theory-sdk.umd.js +1 -1
- package/dist/{create-card-BuOvimjH.js → create-card-DipDWgph.js} +1 -1
- package/dist/{create-card-BuOvimjH.js.map → create-card-DipDWgph.js.map} +1 -1
- package/dist/{index-oREjBjga.js → index-BBfuUaLw.js} +4 -4
- package/dist/{index-oREjBjga.js.map → index-BBfuUaLw.js.map} +1 -1
- package/dist/loader/basis-theory.min.js +1 -1
- package/dist/sri.json +7 -7
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var BasisTheoryLoader=function(p){"use strict";const
|
|
1
|
+
var BasisTheoryLoader=function(p){"use strict";const E=(c,m,f)=>{const a=new Error(m);return a.name="BasisTheoryError",a.code=c,a.details=f,Error.captureStackTrace&&Error.captureStackTrace(a,E),a.toJSON=()=>({name:a.name,code:a.code,message:a.message,...a.details&&{details:a.details}}),a},b=(c,m)=>{const f=E("CONFIGURATION_ERROR",c,m);return f.name="ConfigurationError",f};function D(c){const{version:m="loader-0.1.0",onSdkReady:f,debug:a=!1,sdkSriHash:w=""}=c,d=[];let y=null,i=!1,t=null,g=c.sdkUrl;function U(){return y||(y=new Promise((o,s)=>{if(window.__BasisTheorySDK__){a&&console.log("[BasisTheory] SDK already loaded, skipping script injection"),i=!0,o(),f?.();return}const u=document.createElement("script");u.src=g,u.async=!0,u.crossOrigin="anonymous",w&&(u.integrity=w),u.onload=()=>{i=!0,o(),f?.()},u.onerror=()=>{s(new Error(`Failed to load BasisTheory SDK from ${g}`))},document.head.appendChild(u)}),y)}function I(){if(d.length===0)return[];a&&console.log(`[BasisTheory] Transforming ${d.length} queued commands for SDK`);const o=[];for(const s of d)s.type==="init"||s.type==="createElement"||o.push({method:s.type,args:s.args||[],resolve:()=>{},reject:u=>{console.error("[BasisTheory] Queued command failed:",s.type,u)}});return o}async function l(o,s){if(t)return t;if(await y,!t){const u=I();a&&console.log("[BasisTheory] Initializing SDK with queued commands",{queueLength:u.length});const e=window.__BasisTheorySDK__;if(!e||typeof e!="function")throw b("BasisTheory SDK not found at window.__BasisTheorySDK__");a&&console.log("[BasisTheory] Found SDK function:",typeof e),t=e(o,s,u),d.length=0}return t}const T=function(o,s){return d.push({type:"init",apiKey:o,options:s,timestamp:Date.now()}),s?.elementsBaseUrl&&!y&&(g=`${s.elementsBaseUrl.replace(/\/elements\/?$/,"")}/web-elements/basis-theory-sdk.umd.js`,a&&console.log("[BasisTheory] Derived SDK URL from elementsBaseUrl:",g)),U(),{createElement(e,n){if(i&&t)return t.createElement(e,n);d.push({type:"createElement",args:[e,n],timestamp:Date.now()});let r=null;const k=[];return{get id(){return r?.id},get type(){return r?.type},get mounted(){return r?.mounted??!1},get fields(){return r?.fields},mount:async h=>(r=(await l(o,s)).createElement(e,n),k.forEach(({event:S,handler:R})=>{r.on(S,R)}),k.length=0,await r.mount(h)),on:(h,_)=>r?r.on(h,_):(k.push({event:h,handler:_}),()=>{const B=k.findIndex(S=>S.event===h&&S.handler===_);B!==-1&&k.splice(B,1)}),update:async(...h)=>{if(r)return r.update(...h)},unmount:()=>{r&&r.unmount()},focus:()=>{r&&r.focus()},blur:()=>{r&&r.blur()},clear:()=>{r&&r.clear()}}},async tokenize(e,n){return i&&t?t.tokenize(e,n):(await l(o,s)).tokenize(e,n)},updateThemeMode(e){if(i&&t)return t.updateThemeMode(e);d.push({type:"updateThemeMode",args:[e],timestamp:Date.now()})},tokens:{async create(e){return i&&t?t.tokens.create(e):(await l(o,s)).tokens.create(e)},async retrieve(e,n){return i&&t?t.tokens.retrieve(e,n):(await l(o,s)).tokens.retrieve(e,n)},async update(e,n){return i&&t?t.tokens.update(e,n):(await l(o,s)).tokens.update(e,n)},async encrypt(e,n,r){return i&&t?t.tokens.encrypt(e,n,r):(await l(o,s)).tokens.encrypt(e,n,r)}},sessions:{async create(){return i&&t?t.sessions.create():(await l(o,s)).sessions.create()}},tokenIntents:{async create(e,n){return i&&t?t.tokenIntents.create(e,n):(await l(o,s)).tokenIntents.create(e,n)},async get(e,n){return i&&t?t.tokenIntents.get(e,n):(await l(o,s)).tokenIntents.get(e,n)}},__queue:d,__loaderVersion:m}};return T.__sdkUrl=g,T.__version=m,Object.defineProperty(T,"__pending",{get(){return i?0:d.filter(o=>o.type==="init").length}}),T}if(typeof window<"u"){const c=typeof localStorage<"u"&&localStorage.getItem("bt_debug")==="true",w=D({sdkUrl:"https://js.basistheory.com/3.0.0-beta.3/web-elements/basis-theory-sdk.umd.js",version:"loader-0.1.0",debug:c,sdkSriHash:"sha384-ddyMdTUvEA0NROPra0/eWz+jWaUMNSsyhhlM1rCTNGdqTMkLAHqd5G/QQPZ/uJbv",onSdkReady:()=>{window.BasisTheory.__sdkReady=!0,c&&console.log("[BasisTheory] SDK loaded and ready")}});window.BasisTheory=w,window.BasisTheory.__loaderLoadTime=Date.now(),window.BasisTheory.__sdkReady=!1,c&&console.log("[BasisTheory] SDK available at window.BasisTheory")}return p.createLoader=D,p}({});
|
package/dist/sri.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0",
|
|
3
3
|
"versions": {
|
|
4
|
-
"3.0.0-beta.
|
|
4
|
+
"3.0.0-beta.3": {
|
|
5
5
|
"umd": {
|
|
6
|
-
"hash": "sha384-
|
|
7
|
-
"url": "https://js.basistheory.com/3.0.0-beta.
|
|
6
|
+
"hash": "sha384-ddyMdTUvEA0NROPra0/eWz+jWaUMNSsyhhlM1rCTNGdqTMkLAHqd5G/QQPZ/uJbv",
|
|
7
|
+
"url": "https://js.basistheory.com/3.0.0-beta.3/web-elements/basis-theory-sdk.umd.js",
|
|
8
8
|
"size": 37664
|
|
9
9
|
},
|
|
10
10
|
"es": {
|
|
11
|
-
"hash": "sha384-
|
|
12
|
-
"url": "https://js.basistheory.com/3.0.0-beta.
|
|
11
|
+
"hash": "sha384-2d1ZLM+3c8nXIBEcLQEb8z5vrX7pViZdTTWS9EOZpZsv3k05qA3UtMpdPPCYtCXd",
|
|
12
|
+
"url": "https://js.basistheory.com/3.0.0-beta.3/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.
|
|
16
|
+
"hash": "sha384-6EKARPX/SiO2afMUOkWOSIWueNo4XPmri7bZz5bVuPBRWElgRVpetNLCtblDhBkd",
|
|
17
|
+
"url": "https://js.basistheory.com/3.0.0-beta.3/web-elements/basis-theory.js",
|
|
18
18
|
"size": 4208
|
|
19
19
|
}
|
|
20
20
|
}
|
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":"434b3b1b-1","name":"deep-sanitization.js"},{"uid":"434b3b1b-3","name":"debug-logger.js"},{"uid":"434b3b1b-5","name":"errors.js"},{"uid":"434b3b1b-7","name":"logger-context.js"}]},{"name":"postmessage/dist/client.js","uid":"434b3b1b-9"}]},{"name":"src","children":[{"name":"mounter/create-mounter.ts","uid":"434b3b1b-11"},{"name":"utils","children":[{"uid":"434b3b1b-13","name":"create-iframe.ts"},{"uid":"434b3b1b-15","name":"create-event-dispatcher.ts"},{"uid":"434b3b1b-25","name":"resolve-element-references.ts"},{"uid":"434b3b1b-29","name":"warn-unknown-keys.ts"},{"uid":"434b3b1b-31","name":"validate-sdk-config.ts"},{"uid":"434b3b1b-33","name":"validate-element-options.ts"}]},{"name":"elements","children":[{"uid":"434b3b1b-17","name":"create-card-number.ts"},{"uid":"434b3b1b-19","name":"create-cvv.ts"},{"uid":"434b3b1b-21","name":"create-expiry.ts"},{"uid":"434b3b1b-23","name":"create-text.ts"},{"uid":"434b3b1b-41","name":"create-card.ts"}]},{"name":"theme/default-theme.ts","uid":"434b3b1b-27"},{"uid":"434b3b1b-35","name":"BasisTheory.ts"},{"uid":"434b3b1b-37","name":"version.ts"},{"uid":"434b3b1b-39","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"434b3b1b-1":{"renderedLength":5852,"gzipLength":1790,"brotliLength":1544,"metaUid":"434b3b1b-0"},"434b3b1b-3":{"renderedLength":2608,"gzipLength":1059,"brotliLength":903,"metaUid":"434b3b1b-2"},"434b3b1b-5":{"renderedLength":2596,"gzipLength":736,"brotliLength":634,"metaUid":"434b3b1b-4"},"434b3b1b-7":{"renderedLength":341,"gzipLength":224,"brotliLength":152,"metaUid":"434b3b1b-6"},"434b3b1b-9":{"renderedLength":12384,"gzipLength":3326,"brotliLength":2816,"metaUid":"434b3b1b-8"},"434b3b1b-11":{"renderedLength":484,"gzipLength":223,"brotliLength":164,"metaUid":"434b3b1b-10"},"434b3b1b-13":{"renderedLength":373,"gzipLength":194,"brotliLength":142,"metaUid":"434b3b1b-12"},"434b3b1b-15":{"renderedLength":2492,"gzipLength":692,"brotliLength":572,"metaUid":"434b3b1b-14"},"434b3b1b-17":{"renderedLength":6642,"gzipLength":1667,"brotliLength":1419,"metaUid":"434b3b1b-16"},"434b3b1b-19":{"renderedLength":6723,"gzipLength":1721,"brotliLength":1466,"metaUid":"434b3b1b-18"},"434b3b1b-21":{"renderedLength":6522,"gzipLength":1641,"brotliLength":1392,"metaUid":"434b3b1b-20"},"434b3b1b-23":{"renderedLength":8003,"gzipLength":2046,"brotliLength":1731,"metaUid":"434b3b1b-22"},"434b3b1b-25":{"renderedLength":1131,"gzipLength":439,"brotliLength":360,"metaUid":"434b3b1b-24"},"434b3b1b-27":{"renderedLength":4104,"gzipLength":1062,"brotliLength":915,"metaUid":"434b3b1b-26"},"434b3b1b-29":{"renderedLength":590,"gzipLength":285,"brotliLength":255,"metaUid":"434b3b1b-28"},"434b3b1b-31":{"renderedLength":3791,"gzipLength":1035,"brotliLength":894,"metaUid":"434b3b1b-30"},"434b3b1b-33":{"renderedLength":4208,"gzipLength":1013,"brotliLength":884,"metaUid":"434b3b1b-32"},"434b3b1b-35":{"renderedLength":23347,"gzipLength":4585,"brotliLength":3958,"metaUid":"434b3b1b-34"},"434b3b1b-37":{"renderedLength":85,"gzipLength":96,"brotliLength":86,"metaUid":"434b3b1b-36"},"434b3b1b-39":{"renderedLength":93,"gzipLength":93,"brotliLength":75,"metaUid":"434b3b1b-38"},"434b3b1b-41":{"renderedLength":7886,"gzipLength":1963,"brotliLength":1679,"metaUid":"434b3b1b-40"}},"nodeMetas":{"434b3b1b-0":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/deep-sanitization.js","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-1"},"imported":[],"importedBy":[{"uid":"434b3b1b-43"},{"uid":"434b3b1b-2"}]},"434b3b1b-2":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/debug-logger.js","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-3"},"imported":[{"uid":"434b3b1b-0"}],"importedBy":[{"uid":"434b3b1b-43"},{"uid":"434b3b1b-6"}]},"434b3b1b-4":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/errors.js","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-5"},"imported":[],"importedBy":[{"uid":"434b3b1b-43"},{"uid":"434b3b1b-47"}]},"434b3b1b-6":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/logger-context.js","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-7"},"imported":[{"uid":"434b3b1b-2"}],"importedBy":[{"uid":"434b3b1b-43"}]},"434b3b1b-8":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/client.js","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-9"},"imported":[{"uid":"434b3b1b-43"}],"importedBy":[{"uid":"434b3b1b-42"}]},"434b3b1b-10":{"id":"/src/mounter/create-mounter.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-11"},"imported":[],"importedBy":[{"uid":"434b3b1b-16"},{"uid":"434b3b1b-18"},{"uid":"434b3b1b-20"},{"uid":"434b3b1b-22"},{"uid":"434b3b1b-40"}]},"434b3b1b-12":{"id":"/src/utils/create-iframe.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-13"},"imported":[],"importedBy":[{"uid":"434b3b1b-16"},{"uid":"434b3b1b-18"},{"uid":"434b3b1b-20"},{"uid":"434b3b1b-22"},{"uid":"434b3b1b-40"}]},"434b3b1b-14":{"id":"/src/utils/create-event-dispatcher.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-15"},"imported":[],"importedBy":[{"uid":"434b3b1b-16"},{"uid":"434b3b1b-18"},{"uid":"434b3b1b-20"},{"uid":"434b3b1b-22"},{"uid":"434b3b1b-40"}]},"434b3b1b-16":{"id":"/src/elements/create-card-number.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-17"},"imported":[{"uid":"434b3b1b-42"},{"uid":"434b3b1b-43"},{"uid":"434b3b1b-10"},{"uid":"434b3b1b-12"},{"uid":"434b3b1b-14"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-18":{"id":"/src/elements/create-cvv.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-19"},"imported":[{"uid":"434b3b1b-42"},{"uid":"434b3b1b-43"},{"uid":"434b3b1b-10"},{"uid":"434b3b1b-12"},{"uid":"434b3b1b-14"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-20":{"id":"/src/elements/create-expiry.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-21"},"imported":[{"uid":"434b3b1b-42"},{"uid":"434b3b1b-43"},{"uid":"434b3b1b-10"},{"uid":"434b3b1b-12"},{"uid":"434b3b1b-14"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-22":{"id":"/src/elements/create-text.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-23"},"imported":[{"uid":"434b3b1b-42"},{"uid":"434b3b1b-43"},{"uid":"434b3b1b-10"},{"uid":"434b3b1b-12"},{"uid":"434b3b1b-14"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-24":{"id":"/src/utils/resolve-element-references.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-25"},"imported":[{"uid":"434b3b1b-43"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-26":{"id":"/src/theme/default-theme.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-27"},"imported":[],"importedBy":[{"uid":"434b3b1b-30"}]},"434b3b1b-28":{"id":"/src/utils/warn-unknown-keys.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-29"},"imported":[],"importedBy":[{"uid":"434b3b1b-30"},{"uid":"434b3b1b-32"}]},"434b3b1b-30":{"id":"/src/utils/validate-sdk-config.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-31"},"imported":[{"uid":"434b3b1b-43"},{"uid":"434b3b1b-26"},{"uid":"434b3b1b-28"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-32":{"id":"/src/utils/validate-element-options.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-33"},"imported":[{"uid":"434b3b1b-43"},{"uid":"434b3b1b-28"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-34":{"id":"/src/BasisTheory.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-35"},"imported":[{"uid":"434b3b1b-42"},{"uid":"434b3b1b-43"},{"uid":"434b3b1b-16"},{"uid":"434b3b1b-18"},{"uid":"434b3b1b-20"},{"uid":"434b3b1b-22"},{"uid":"434b3b1b-24"},{"uid":"434b3b1b-30"},{"uid":"434b3b1b-32"},{"uid":"434b3b1b-40","dynamic":true}],"importedBy":[{"uid":"434b3b1b-38"}]},"434b3b1b-36":{"id":"/src/version.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-37"},"imported":[],"importedBy":[{"uid":"434b3b1b-38"}]},"434b3b1b-38":{"id":"/src/index.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-39"},"imported":[{"uid":"434b3b1b-34"},{"uid":"434b3b1b-36"}],"importedBy":[],"isEntry":true},"434b3b1b-40":{"id":"/src/elements/create-card.ts","moduleParts":{"basis-theory-sdk.umd.js":"434b3b1b-41"},"imported":[{"uid":"434b3b1b-42"},{"uid":"434b3b1b-43"},{"uid":"434b3b1b-10"},{"uid":"434b3b1b-12"},{"uid":"434b3b1b-14"}],"importedBy":[{"uid":"434b3b1b-34"}]},"434b3b1b-42":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/index.js","moduleParts":{},"imported":[{"uid":"434b3b1b-8"},{"uid":"434b3b1b-44"},{"uid":"434b3b1b-45"},{"uid":"434b3b1b-46"}],"importedBy":[{"uid":"434b3b1b-34"},{"uid":"434b3b1b-16"},{"uid":"434b3b1b-18"},{"uid":"434b3b1b-20"},{"uid":"434b3b1b-22"},{"uid":"434b3b1b-40"}]},"434b3b1b-43":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/index.js","moduleParts":{},"imported":[{"uid":"434b3b1b-2"},{"uid":"434b3b1b-0"},{"uid":"434b3b1b-47"},{"uid":"434b3b1b-48"},{"uid":"434b3b1b-6"},{"uid":"434b3b1b-4"}],"importedBy":[{"uid":"434b3b1b-34"},{"uid":"434b3b1b-16"},{"uid":"434b3b1b-18"},{"uid":"434b3b1b-20"},{"uid":"434b3b1b-22"},{"uid":"434b3b1b-24"},{"uid":"434b3b1b-30"},{"uid":"434b3b1b-32"},{"uid":"434b3b1b-40"},{"uid":"434b3b1b-8"},{"uid":"434b3b1b-44"}]},"434b3b1b-44":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/server.js","moduleParts":{},"imported":[{"uid":"434b3b1b-43"}],"importedBy":[{"uid":"434b3b1b-42"}]},"434b3b1b-45":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/types.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"434b3b1b-42"}]},"434b3b1b-46":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/event-map.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"434b3b1b-42"}]},"434b3b1b-47":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/api-url-resolver.js","moduleParts":{},"imported":[{"uid":"434b3b1b-4"}],"importedBy":[{"uid":"434b3b1b-43"}]},"434b3b1b-48":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/generate-id.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"434b3b1b-43"}]}},"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":"0bf2e992-1","name":"deep-sanitization.js"},{"uid":"0bf2e992-3","name":"debug-logger.js"},{"uid":"0bf2e992-5","name":"errors.js"},{"uid":"0bf2e992-7","name":"logger-context.js"}]},{"name":"postmessage/dist/client.js","uid":"0bf2e992-9"}]},{"name":"src","children":[{"name":"mounter/create-mounter.ts","uid":"0bf2e992-11"},{"name":"utils","children":[{"uid":"0bf2e992-13","name":"create-iframe.ts"},{"uid":"0bf2e992-15","name":"create-event-dispatcher.ts"},{"uid":"0bf2e992-25","name":"resolve-element-references.ts"},{"uid":"0bf2e992-29","name":"warn-unknown-keys.ts"},{"uid":"0bf2e992-31","name":"validate-sdk-config.ts"},{"uid":"0bf2e992-33","name":"validate-element-options.ts"}]},{"name":"elements","children":[{"uid":"0bf2e992-17","name":"create-card-number.ts"},{"uid":"0bf2e992-19","name":"create-cvv.ts"},{"uid":"0bf2e992-21","name":"create-expiry.ts"},{"uid":"0bf2e992-23","name":"create-text.ts"},{"uid":"0bf2e992-41","name":"create-card.ts"}]},{"name":"theme/default-theme.ts","uid":"0bf2e992-27"},{"uid":"0bf2e992-35","name":"BasisTheory.ts"},{"uid":"0bf2e992-37","name":"version.ts"},{"uid":"0bf2e992-39","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"0bf2e992-1":{"renderedLength":5852,"gzipLength":1790,"brotliLength":1544,"metaUid":"0bf2e992-0"},"0bf2e992-3":{"renderedLength":2608,"gzipLength":1059,"brotliLength":903,"metaUid":"0bf2e992-2"},"0bf2e992-5":{"renderedLength":2596,"gzipLength":736,"brotliLength":634,"metaUid":"0bf2e992-4"},"0bf2e992-7":{"renderedLength":341,"gzipLength":224,"brotliLength":152,"metaUid":"0bf2e992-6"},"0bf2e992-9":{"renderedLength":12384,"gzipLength":3326,"brotliLength":2816,"metaUid":"0bf2e992-8"},"0bf2e992-11":{"renderedLength":484,"gzipLength":223,"brotliLength":164,"metaUid":"0bf2e992-10"},"0bf2e992-13":{"renderedLength":373,"gzipLength":194,"brotliLength":142,"metaUid":"0bf2e992-12"},"0bf2e992-15":{"renderedLength":2492,"gzipLength":692,"brotliLength":572,"metaUid":"0bf2e992-14"},"0bf2e992-17":{"renderedLength":6642,"gzipLength":1667,"brotliLength":1419,"metaUid":"0bf2e992-16"},"0bf2e992-19":{"renderedLength":6723,"gzipLength":1721,"brotliLength":1466,"metaUid":"0bf2e992-18"},"0bf2e992-21":{"renderedLength":6522,"gzipLength":1641,"brotliLength":1392,"metaUid":"0bf2e992-20"},"0bf2e992-23":{"renderedLength":8003,"gzipLength":2046,"brotliLength":1731,"metaUid":"0bf2e992-22"},"0bf2e992-25":{"renderedLength":1131,"gzipLength":439,"brotliLength":360,"metaUid":"0bf2e992-24"},"0bf2e992-27":{"renderedLength":4104,"gzipLength":1062,"brotliLength":915,"metaUid":"0bf2e992-26"},"0bf2e992-29":{"renderedLength":590,"gzipLength":285,"brotliLength":255,"metaUid":"0bf2e992-28"},"0bf2e992-31":{"renderedLength":3791,"gzipLength":1035,"brotliLength":894,"metaUid":"0bf2e992-30"},"0bf2e992-33":{"renderedLength":4208,"gzipLength":1013,"brotliLength":884,"metaUid":"0bf2e992-32"},"0bf2e992-35":{"renderedLength":23347,"gzipLength":4585,"brotliLength":3958,"metaUid":"0bf2e992-34"},"0bf2e992-37":{"renderedLength":85,"gzipLength":96,"brotliLength":85,"metaUid":"0bf2e992-36"},"0bf2e992-39":{"renderedLength":93,"gzipLength":93,"brotliLength":75,"metaUid":"0bf2e992-38"},"0bf2e992-41":{"renderedLength":7886,"gzipLength":1963,"brotliLength":1679,"metaUid":"0bf2e992-40"}},"nodeMetas":{"0bf2e992-0":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/deep-sanitization.js","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-1"},"imported":[],"importedBy":[{"uid":"0bf2e992-43"},{"uid":"0bf2e992-2"}]},"0bf2e992-2":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/debug-logger.js","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-3"},"imported":[{"uid":"0bf2e992-0"}],"importedBy":[{"uid":"0bf2e992-43"},{"uid":"0bf2e992-6"}]},"0bf2e992-4":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/errors.js","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-5"},"imported":[],"importedBy":[{"uid":"0bf2e992-43"},{"uid":"0bf2e992-47"}]},"0bf2e992-6":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/logger-context.js","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-7"},"imported":[{"uid":"0bf2e992-2"}],"importedBy":[{"uid":"0bf2e992-43"}]},"0bf2e992-8":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/client.js","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-9"},"imported":[{"uid":"0bf2e992-43"}],"importedBy":[{"uid":"0bf2e992-42"}]},"0bf2e992-10":{"id":"/src/mounter/create-mounter.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-11"},"imported":[],"importedBy":[{"uid":"0bf2e992-16"},{"uid":"0bf2e992-18"},{"uid":"0bf2e992-20"},{"uid":"0bf2e992-22"},{"uid":"0bf2e992-40"}]},"0bf2e992-12":{"id":"/src/utils/create-iframe.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-13"},"imported":[],"importedBy":[{"uid":"0bf2e992-16"},{"uid":"0bf2e992-18"},{"uid":"0bf2e992-20"},{"uid":"0bf2e992-22"},{"uid":"0bf2e992-40"}]},"0bf2e992-14":{"id":"/src/utils/create-event-dispatcher.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-15"},"imported":[],"importedBy":[{"uid":"0bf2e992-16"},{"uid":"0bf2e992-18"},{"uid":"0bf2e992-20"},{"uid":"0bf2e992-22"},{"uid":"0bf2e992-40"}]},"0bf2e992-16":{"id":"/src/elements/create-card-number.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-17"},"imported":[{"uid":"0bf2e992-42"},{"uid":"0bf2e992-43"},{"uid":"0bf2e992-10"},{"uid":"0bf2e992-12"},{"uid":"0bf2e992-14"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-18":{"id":"/src/elements/create-cvv.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-19"},"imported":[{"uid":"0bf2e992-42"},{"uid":"0bf2e992-43"},{"uid":"0bf2e992-10"},{"uid":"0bf2e992-12"},{"uid":"0bf2e992-14"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-20":{"id":"/src/elements/create-expiry.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-21"},"imported":[{"uid":"0bf2e992-42"},{"uid":"0bf2e992-43"},{"uid":"0bf2e992-10"},{"uid":"0bf2e992-12"},{"uid":"0bf2e992-14"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-22":{"id":"/src/elements/create-text.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-23"},"imported":[{"uid":"0bf2e992-42"},{"uid":"0bf2e992-43"},{"uid":"0bf2e992-10"},{"uid":"0bf2e992-12"},{"uid":"0bf2e992-14"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-24":{"id":"/src/utils/resolve-element-references.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-25"},"imported":[{"uid":"0bf2e992-43"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-26":{"id":"/src/theme/default-theme.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-27"},"imported":[],"importedBy":[{"uid":"0bf2e992-30"}]},"0bf2e992-28":{"id":"/src/utils/warn-unknown-keys.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-29"},"imported":[],"importedBy":[{"uid":"0bf2e992-30"},{"uid":"0bf2e992-32"}]},"0bf2e992-30":{"id":"/src/utils/validate-sdk-config.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-31"},"imported":[{"uid":"0bf2e992-43"},{"uid":"0bf2e992-26"},{"uid":"0bf2e992-28"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-32":{"id":"/src/utils/validate-element-options.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-33"},"imported":[{"uid":"0bf2e992-43"},{"uid":"0bf2e992-28"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-34":{"id":"/src/BasisTheory.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-35"},"imported":[{"uid":"0bf2e992-42"},{"uid":"0bf2e992-43"},{"uid":"0bf2e992-16"},{"uid":"0bf2e992-18"},{"uid":"0bf2e992-20"},{"uid":"0bf2e992-22"},{"uid":"0bf2e992-24"},{"uid":"0bf2e992-30"},{"uid":"0bf2e992-32"},{"uid":"0bf2e992-40","dynamic":true}],"importedBy":[{"uid":"0bf2e992-38"}]},"0bf2e992-36":{"id":"/src/version.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-37"},"imported":[],"importedBy":[{"uid":"0bf2e992-38"}]},"0bf2e992-38":{"id":"/src/index.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-39"},"imported":[{"uid":"0bf2e992-34"},{"uid":"0bf2e992-36"}],"importedBy":[],"isEntry":true},"0bf2e992-40":{"id":"/src/elements/create-card.ts","moduleParts":{"basis-theory-sdk.umd.js":"0bf2e992-41"},"imported":[{"uid":"0bf2e992-42"},{"uid":"0bf2e992-43"},{"uid":"0bf2e992-10"},{"uid":"0bf2e992-12"},{"uid":"0bf2e992-14"}],"importedBy":[{"uid":"0bf2e992-34"}]},"0bf2e992-42":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/index.js","moduleParts":{},"imported":[{"uid":"0bf2e992-8"},{"uid":"0bf2e992-44"},{"uid":"0bf2e992-45"},{"uid":"0bf2e992-46"}],"importedBy":[{"uid":"0bf2e992-34"},{"uid":"0bf2e992-16"},{"uid":"0bf2e992-18"},{"uid":"0bf2e992-20"},{"uid":"0bf2e992-22"},{"uid":"0bf2e992-40"}]},"0bf2e992-43":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/index.js","moduleParts":{},"imported":[{"uid":"0bf2e992-2"},{"uid":"0bf2e992-0"},{"uid":"0bf2e992-47"},{"uid":"0bf2e992-48"},{"uid":"0bf2e992-6"},{"uid":"0bf2e992-4"}],"importedBy":[{"uid":"0bf2e992-34"},{"uid":"0bf2e992-16"},{"uid":"0bf2e992-18"},{"uid":"0bf2e992-20"},{"uid":"0bf2e992-22"},{"uid":"0bf2e992-24"},{"uid":"0bf2e992-30"},{"uid":"0bf2e992-32"},{"uid":"0bf2e992-40"},{"uid":"0bf2e992-8"},{"uid":"0bf2e992-44"}]},"0bf2e992-44":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/server.js","moduleParts":{},"imported":[{"uid":"0bf2e992-43"}],"importedBy":[{"uid":"0bf2e992-42"}]},"0bf2e992-45":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/types.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0bf2e992-42"}]},"0bf2e992-46":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/postmessage/dist/event-map.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0bf2e992-42"}]},"0bf2e992-47":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/api-url-resolver.js","moduleParts":{},"imported":[{"uid":"0bf2e992-4"}],"importedBy":[{"uid":"0bf2e992-43"}]},"0bf2e992-48":{"id":"/home/runner/work/basistheory-elements/basistheory-elements/packages/shared/dist/generate-id.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0bf2e992-43"}]}},"env":{"rollup":"4.52.5"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
package/package.json
CHANGED