@basis-theory/web-elements 2.2.4 → 2.4.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.
@@ -1 +1 @@
1
- !function(){function e(e,t,r,n,o,i,l){try{var c=e[i](l),a=c.value}catch(e){r(e);return}c.done?t(a):Promise.resolve(a).then(n,o)}function t(t){return function(){var r=this,n=arguments;return new Promise(function(o,i){var l=t.apply(r,n);function c(t){e(l,o,i,c,a,"next",t)}function a(t){e(l,o,i,c,a,"throw",t)}c(void 0)})}}function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function n(e,t){var r,n,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,n=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}var o,i,l,c,a,s,u,d=(c=t(function(e,t){var r,o,c,a,s,u,d,f=arguments;return n(this,function(n){switch(n.label){case 0:if(r=f.length>2&&void 0!==f[2]?f[2]:{},i)return[2];d=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({level:t,message:e,service:"web-elements-loader",env:u=!l||(null==l?void 0:l.includes("localhost"))?"local":l.includes("dev")?"dev":"prod",referrer:null===(o=document)||void 0===o?void 0:o.referrer,origin:null===(c=window)||void 0===c?void 0:c.location.origin,url:null===(a=window)||void 0===a?void 0:a.location.href,userAgent:null===(s=navigator)||void 0===s?void 0:s.userAgent},r),["local","dev"].includes(u)&&console.log(d),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,fetch("https://http-intake.logs.datadoghq.com/v1/input/".concat("pubb96b84a13912504f4354f2d794ea4fab"),{method:"POST",body:JSON.stringify(d),headers:{"Content-Type":"application/json"}})];case 2:return n.sent(),[3,4];case 3:return n.sent(),console.warn("There was an error sending telemetry."),[3,4];case 4:return[2]}})}),a=function(e,t){return c.apply(this,arguments)},{disableTelemetry:function(e){i=e},setBaseUrl:function(e){l=e},log:{error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,"error",t)},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,"info",t)},warn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,"warn",t)}}});function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,r){return(m=p()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return m(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}var y=function(e){"use strict";if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e,n,o){var i;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return(i=function(e,t,n){t=f(t);var o=p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n);if(o&&("object"===r(o)||"function"==typeof o))return o;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t,[e])).details=n,i.validation=o,i.name="BasisTheoryValidationError",Object.setPrototypeOf(i,t.prototype),i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e),t}(v(Error)),w=function(e){var t;if("string"!=typeof e||!e.trim())throw Error("Custom domain must be a non-empty string.");try{t=new URL(e.toLowerCase().startsWith("http")?e:"https://".concat(e))}catch(t){throw new y('Invalid custom domain: "'.concat(e,'"'),{})}if("https:"!==t.protocol)throw new y('Custom domain must use HTTPS (got "'.concat(t.protocol,'")'),{});if("/"!==t.pathname||t.search||t.hash)throw new y('Custom domain must not include path, query, or hash (got "'.concat(t.href,'")'),{});if(t.port)throw new y('Custom domain must not include a port (got ":'.concat(t.port,'")'),{});if(!/^(?=.{1,253}$)([a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$/.test(t.hostname))throw new y('Invalid hostname: "'.concat(t.hostname,'"'),{});return t.origin},b=function(e){var t=document.querySelector('script[src^="'.concat(e,'"]'));if(t)return t;var r=document.head||document.body;if(!r)throw Error("No <head> or <body> elements found in the document.");var n=Object.assign(document.createElement("script"),{src:e});return r.append(n),n},g="Tried to load BasisTheoryElements in a non-DOM environment.",E="Unable to load the Elements script. This may be due to network restrictions or browser extensions like ad blockers interfering with script loading. Check browser settings or network connection and try again.",O=function(e,r){return new Promise(function(o,i){var l,c=b(e),a=!1;c.addEventListener("load",function(){window.BasisTheoryElements?o(window.BasisTheoryElements):(t(function(){return n(this,function(e){switch(e.label){case 0:return[4,d.log.error("Elements not found on window on load",{logType:"elementsNotFoundOnWindow",logOrigin:"loadScript",retryCount:r})];case 1:return e.sent(),[2]}})})(),i(Error("Basis Theory Elements did not load properly. Check network tab for more details.")))}),c.addEventListener("error",(l=t(function(t){var l,s,u;return n(this,function(n){switch(n.label){case 0:if(a)return[2];return a=!0,[4,d.log.error("Elements script onError event",{logType:"elementsScriptOnError",logOrigin:"loadScript",retryCount:r,event:{message:null==t?void 0:t.message,source:null==t?void 0:t.filename,lineno:null==t?void 0:t.lineno,colno:null==t?void 0:t.colno,error:null==t?void 0:t.error,target:null==t?void 0:t.target}})];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,3,,5]),null==c||c.remove(),[3,5];case 3:return l=n.sent(),[4,d.log.error("Error removing script from DOM on retry attempt ".concat(r),{logType:"scriptRemovalError",logOrigin:"loadScript",retryCount:r,removalError:l})];case 4:return n.sent(),[3,5];case 5:if(0===r)return O(e,r+1).then(o).catch(i),[2];n.label=6;case 6:return n.trys.push([6,12,,14]),[4,fetch(e)];case 7:if((s=n.sent()).ok)return[3,9];return[4,d.log.error("Second attempt to load elements script failed, fetch failed with status: ".concat(s.status,"."),{logType:"elementsScriptFetchFailure",logOrigin:"loadScript",retryCount:r,fetchResult:"error",fetchResponse:s})];case 8:return n.sent(),i(Error(g)),[3,11];case 9:return[4,d.log.error("Second attempt to load elements script failed, fetch success",{logType:"elementsScriptFetchFailure",logOrigin:"loadScript",retryCount:r,fetchResult:"success",fetchResponse:s})];case 10:n.sent(),i(Error(E)),n.label=11;case 11:return[3,14];case 12:return u=n.sent(),[4,d.log.error("Second attempt failed to load elements script failed, fetch network error.",{logType:"elementsScriptFetchError",logOrigin:"loadScript",retryCount:r,fetchResult:"error",fetchError:u})];case 13:return n.sent(),i(Error(E)),[3,14];case 14:return i((null==t?void 0:t.error)||(null==t?void 0:t.message)||Error(E)),[2]}})}),function(e){return l.apply(this,arguments)}))})},T=function(e){(null==e?void 0:e._devMode)&&(null==e?void 0:e.customDomain)&&console.warn("Dev mode and domain whitelabeling are both enabled - dev mode takes precedence.");var t=(null==e?void 0:e._devMode)?"https://js.flock-dev.com":(null==e?void 0:e.customDomain)?w(e.customDomain):"https://js.basistheory.com",r="".concat(t,"/web-elements/").concat("2.2.4"),n="".concat(r,"/client/index.js"),o="".concat(r,"/hosted-elements/");return(null==e?void 0:e.customDomain)&&!e._devMode,{origin:t,clientJsUrl:n,hostedElementsBaseUrl:o}},S=(s=t(function(e,i){var l,c,a,s,u,f,p,h,m;return n(this,function(v){switch(v.label){case 0:if(!e||0===e.length)throw Error("API key is required");return c=(l=T(i)).origin,a=l.clientJsUrl,s=l.hostedElementsBaseUrl,d.setBaseUrl(c),d.disableTelemetry(!!(null==i?void 0:i.disableTelemetry)),[4,(o||(o=new Promise(function(e,o){if(("undefined"==typeof window?"undefined":r(window))!=="object"){t(function(){return n(this,function(e){switch(e.label){case 0:return[4,d.log.warn(g,{logType:"elementsNonDomError",logOrigin:"loadElements"})];case 1:return e.sent(),o(Error(g)),[2]}})})();return}if(window.BasisTheoryElements){e(window.BasisTheoryElements);return}O(new URL(a).toString().replace(RegExp("\\/$","u"),""),0).then(e).catch(function(e){o(e)})})),o)];case 1:return[2,v.sent().init(e,s,!1,null===(u=null==i?void 0:i.useSameOriginApi)||void 0===u||u,null!==(f=null==i?void 0:i.disableTelemetry)&&void 0!==f&&f,null!==(p=null==i?void 0:i.debug)&&void 0!==p&&p,null!==(h=null==i?void 0:i.useUat)&&void 0!==h&&h,null!==(m=null==i?void 0:i.useNetworkCheck)&&void 0!==m&&m,(null==i?void 0:i.customDomain)?c:void 0)]}})}),function(e,t){return s.apply(this,arguments)}),k=((u=k||{}).DECIMAL="decimal",u.EMAIL="email",u.NONE="none",u.NUMERIC="numeric",u.SEARCH="search",u.TEL="tel",u.TEXT="text",u.URL="url",u);v(Error),v(Error),"undefined"!=typeof window&&document.currentScript&&!window.basistheory&&(window.basistheory=S)}();
1
+ !function(){function e(e,t,r,n,o,i,l){try{var c=e[i](l),a=c.value}catch(e){r(e);return}c.done?t(a):Promise.resolve(a).then(n,o)}function t(t){return function(){var r=this,n=arguments;return new Promise(function(o,i){var l=t.apply(r,n);function c(t){e(l,o,i,c,a,"next",t)}function a(t){e(l,o,i,c,a,"throw",t)}c(void 0)})}}function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function n(e,t){var r,n,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,n=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}var o,i,l,c,a,s,u,d=(c=t(function(e,t){var r,o,c,a,s,u,d,f=arguments;return n(this,function(n){switch(n.label){case 0:if(r=f.length>2&&void 0!==f[2]?f[2]:{},i)return[2];d=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({level:t,message:e,service:"web-elements-loader",env:u=!l||(null==l?void 0:l.includes("localhost"))?"local":l.includes("dev")?"dev":"prod",referrer:null===(o=document)||void 0===o?void 0:o.referrer,origin:null===(c=window)||void 0===c?void 0:c.location.origin,url:null===(a=window)||void 0===a?void 0:a.location.href,userAgent:null===(s=navigator)||void 0===s?void 0:s.userAgent},r),["local","dev"].includes(u)&&console.log(d),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,fetch("https://http-intake.logs.datadoghq.com/v1/input/".concat("pubb96b84a13912504f4354f2d794ea4fab"),{method:"POST",body:JSON.stringify(d),headers:{"Content-Type":"application/json"}})];case 2:return n.sent(),[3,4];case 3:return n.sent(),console.warn("There was an error sending telemetry."),[3,4];case 4:return[2]}})}),a=function(e,t){return c.apply(this,arguments)},{disableTelemetry:function(e){i=e},setBaseUrl:function(e){l=e},log:{error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,"error",t)},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,"info",t)},warn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,"warn",t)}}});function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,r){return(m=p()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o}).apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return m(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}var y=function(e){"use strict";if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e,n,o){var i;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return(i=function(e,t,n){t=f(t);var o=p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n);if(o&&("object"===r(o)||"function"==typeof o))return o;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t,[e])).details=n,i.validation=o,i.name="BasisTheoryValidationError",Object.setPrototypeOf(i,t.prototype),i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e),t}(v(Error)),w=function(e){var t;if("string"!=typeof e||!e.trim())throw Error("Custom domain must be a non-empty string.");try{t=new URL(e.toLowerCase().startsWith("http")?e:"https://".concat(e))}catch(t){throw new y('Invalid custom domain: "'.concat(e,'"'),{})}if("https:"!==t.protocol)throw new y('Custom domain must use HTTPS (got "'.concat(t.protocol,'")'),{});if("/"!==t.pathname||t.search||t.hash)throw new y('Custom domain must not include path, query, or hash (got "'.concat(t.href,'")'),{});if(t.port)throw new y('Custom domain must not include a port (got ":'.concat(t.port,'")'),{});if(!/^(?=.{1,253}$)([a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$/.test(t.hostname))throw new y('Invalid hostname: "'.concat(t.hostname,'"'),{});return t.origin},b=function(e){var t=document.querySelector('script[src^="'.concat(e,'"]'));if(t)return t;var r=document.head||document.body;if(!r)throw Error("No <head> or <body> elements found in the document.");var n=Object.assign(document.createElement("script"),{src:e});return r.append(n),n},g="Tried to load BasisTheoryElements in a non-DOM environment.",E="Unable to load the Elements script. This may be due to network restrictions or browser extensions like ad blockers interfering with script loading. Check browser settings or network connection and try again.",O=function(e,r){return new Promise(function(o,i){var l,c=b(e),a=!1;c.addEventListener("load",function(){window.BasisTheoryElements?o(window.BasisTheoryElements):(t(function(){return n(this,function(e){switch(e.label){case 0:return[4,d.log.error("Elements not found on window on load",{logType:"elementsNotFoundOnWindow",logOrigin:"loadScript",retryCount:r})];case 1:return e.sent(),[2]}})})(),i(Error("Basis Theory Elements did not load properly. Check network tab for more details.")))}),c.addEventListener("error",(l=t(function(t){var l,s,u;return n(this,function(n){switch(n.label){case 0:if(a)return[2];return a=!0,[4,d.log.error("Elements script onError event",{logType:"elementsScriptOnError",logOrigin:"loadScript",retryCount:r,event:{message:null==t?void 0:t.message,source:null==t?void 0:t.filename,lineno:null==t?void 0:t.lineno,colno:null==t?void 0:t.colno,error:null==t?void 0:t.error,target:null==t?void 0:t.target}})];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,3,,5]),null==c||c.remove(),[3,5];case 3:return l=n.sent(),[4,d.log.error("Error removing script from DOM on retry attempt ".concat(r),{logType:"scriptRemovalError",logOrigin:"loadScript",retryCount:r,removalError:l})];case 4:return n.sent(),[3,5];case 5:if(0===r)return O(e,r+1).then(o).catch(i),[2];n.label=6;case 6:return n.trys.push([6,12,,14]),[4,fetch(e)];case 7:if((s=n.sent()).ok)return[3,9];return[4,d.log.error("Second attempt to load elements script failed, fetch failed with status: ".concat(s.status,"."),{logType:"elementsScriptFetchFailure",logOrigin:"loadScript",retryCount:r,fetchResult:"error",fetchResponse:s})];case 8:return n.sent(),i(Error(g)),[3,11];case 9:return[4,d.log.error("Second attempt to load elements script failed, fetch success",{logType:"elementsScriptFetchFailure",logOrigin:"loadScript",retryCount:r,fetchResult:"success",fetchResponse:s})];case 10:n.sent(),i(Error(E)),n.label=11;case 11:return[3,14];case 12:return u=n.sent(),[4,d.log.error("Second attempt failed to load elements script failed, fetch network error.",{logType:"elementsScriptFetchError",logOrigin:"loadScript",retryCount:r,fetchResult:"error",fetchError:u})];case 13:return n.sent(),i(Error(E)),[3,14];case 14:return i((null==t?void 0:t.error)||(null==t?void 0:t.message)||Error(E)),[2]}})}),function(e){return l.apply(this,arguments)}))})},T=function(e){(null==e?void 0:e._devMode)&&(null==e?void 0:e.customDomain)&&console.warn("Dev mode and domain whitelabeling are both enabled - dev mode takes precedence.");var t=(null==e?void 0:e._devMode)?"https://js.flock-dev.com":(null==e?void 0:e.customDomain)?w(e.customDomain):"https://js.basistheory.com",r="".concat(t,"/web-elements/").concat("2.4.0"),n="".concat(r,"/client/index.js"),o="".concat(r,"/hosted-elements/");return(null==e?void 0:e.customDomain)&&!e._devMode,{origin:t,clientJsUrl:n,hostedElementsBaseUrl:o}},S=(s=t(function(e,i){var l,c,a,s,u,f,p,h,m;return n(this,function(v){switch(v.label){case 0:if(!e||0===e.length)throw Error("API key is required");return c=(l=T(i)).origin,a=l.clientJsUrl,s=l.hostedElementsBaseUrl,d.setBaseUrl(c),d.disableTelemetry(!!(null==i?void 0:i.disableTelemetry)),[4,(o||(o=new Promise(function(e,o){if(("undefined"==typeof window?"undefined":r(window))!=="object"){t(function(){return n(this,function(e){switch(e.label){case 0:return[4,d.log.warn(g,{logType:"elementsNonDomError",logOrigin:"loadElements"})];case 1:return e.sent(),o(Error(g)),[2]}})})();return}if(window.BasisTheoryElements){e(window.BasisTheoryElements);return}O(new URL(a).toString().replace(RegExp("\\/$","u"),""),0).then(e).catch(function(e){o(e)})})),o)];case 1:return[2,v.sent().init(e,s,!1,null===(u=null==i?void 0:i.useSameOriginApi)||void 0===u||u,null!==(f=null==i?void 0:i.disableTelemetry)&&void 0!==f&&f,null!==(p=null==i?void 0:i.debug)&&void 0!==p&&p,null!==(h=null==i?void 0:i.useUat)&&void 0!==h&&h,null!==(m=null==i?void 0:i.useNetworkCheck)&&void 0!==m&&m,(null==i?void 0:i.customDomain)?c:void 0)]}})}),function(e,t){return s.apply(this,arguments)}),k=((u=k||{}).DECIMAL="decimal",u.EMAIL="email",u.NONE="none",u.NUMERIC="numeric",u.SEARCH="search",u.TEL="tel",u.TEXT="text",u.URL="url",u);v(Error),v(Error),v(Error),"undefined"!=typeof window&&document.currentScript&&!window.basistheory&&(window.basistheory=S)}();
@@ -352,7 +352,7 @@ const $5dbc1ef1648671b0$export$9c5c779c8690dca6 = null;
352
352
 
353
353
 
354
354
  // Auto-generated version file
355
- const $eef42ce81412d9ae$export$83d89fbfd8236492 = '2.2.4';
355
+ const $eef42ce81412d9ae$export$83d89fbfd8236492 = '2.4.0';
356
356
 
357
357
 
358
358
  const $316c9c8f85cead13$var$TEST_ORIGIN = 'https://js.flock-dev.com';
@@ -1115,6 +1115,7 @@ var $1eef531dfb8479cf$exports = {};
1115
1115
 
1116
1116
  $parcel$export($1eef531dfb8479cf$exports, "BasisTheoryApiError", () => $d4608c0b4e5d8cb4$export$5a9a4feb38dee587);
1117
1117
  $parcel$export($1eef531dfb8479cf$exports, "BasisTheoryValidationError", () => $3c527b4ad66b1eeb$export$925a29a6f046f0b5);
1118
+ $parcel$export($1eef531dfb8479cf$exports, "BasisTheoryConfigurationError", () => $3f995098830fda86$export$8b56781fadda32af);
1118
1119
  $parcel$export($1eef531dfb8479cf$exports, "HttpClientError", () => $815b13df3d182116$export$83d862a6bd4a93c5);
1119
1120
  class $d4608c0b4e5d8cb4$export$5a9a4feb38dee587 extends Error {
1120
1121
  constructor(message, status, data, _debug){
@@ -1126,6 +1127,15 @@ class $d4608c0b4e5d8cb4$export$5a9a4feb38dee587 extends Error {
1126
1127
 
1127
1128
 
1128
1129
 
1130
+ class $3f995098830fda86$export$8b56781fadda32af extends Error {
1131
+ constructor(message, details){
1132
+ super(message), this.details = details;
1133
+ this.name = 'BasisTheoryConfigurationError';
1134
+ Object.setPrototypeOf(this, $3f995098830fda86$export$8b56781fadda32af.prototype);
1135
+ }
1136
+ }
1137
+
1138
+
1129
1139
  class $815b13df3d182116$export$83d862a6bd4a93c5 extends Error {
1130
1140
  constructor(message, status, data, headers){
1131
1141
  super(message);
@@ -352,7 +352,7 @@ const $c9bd4b894cc03378$export$9c5c779c8690dca6 = null;
352
352
 
353
353
 
354
354
  // Auto-generated version file
355
- const $6a2f0bfcc5905f21$export$83d89fbfd8236492 = '2.2.4';
355
+ const $6a2f0bfcc5905f21$export$83d89fbfd8236492 = '2.4.0';
356
356
 
357
357
 
358
358
  const $65168f0452925da7$var$TEST_ORIGIN = 'https://js.flock-dev.com';
@@ -1115,6 +1115,7 @@ var $fc55d9777ef735a2$exports = {};
1115
1115
 
1116
1116
  $parcel$export($fc55d9777ef735a2$exports, "BasisTheoryApiError", () => $cc8dceaa5ea02f81$export$5a9a4feb38dee587);
1117
1117
  $parcel$export($fc55d9777ef735a2$exports, "BasisTheoryValidationError", () => $16b549d313b97bf4$export$925a29a6f046f0b5);
1118
+ $parcel$export($fc55d9777ef735a2$exports, "BasisTheoryConfigurationError", () => $4a0c7371353b6fff$export$8b56781fadda32af);
1118
1119
  $parcel$export($fc55d9777ef735a2$exports, "HttpClientError", () => $3753a300b9392464$export$83d862a6bd4a93c5);
1119
1120
  class $cc8dceaa5ea02f81$export$5a9a4feb38dee587 extends Error {
1120
1121
  constructor(message, status, data, _debug){
@@ -1126,6 +1127,15 @@ class $cc8dceaa5ea02f81$export$5a9a4feb38dee587 extends Error {
1126
1127
 
1127
1128
 
1128
1129
 
1130
+ class $4a0c7371353b6fff$export$8b56781fadda32af extends Error {
1131
+ constructor(message, details){
1132
+ super(message), this.details = details;
1133
+ this.name = 'BasisTheoryConfigurationError';
1134
+ Object.setPrototypeOf(this, $4a0c7371353b6fff$export$8b56781fadda32af.prototype);
1135
+ }
1136
+ }
1137
+
1138
+
1129
1139
  class $3753a300b9392464$export$83d862a6bd4a93c5 extends Error {
1130
1140
  constructor(message, status, data, headers){
1131
1141
  super(message);
@@ -1145,4 +1155,4 @@ class $3753a300b9392464$export$83d862a6bd4a93c5 extends Error {
1145
1155
  */ if (typeof window !== 'undefined' && document.currentScript && !window.basistheory) window.basistheory = (0, $65168f0452925da7$export$cbe2892587230861);
1146
1156
 
1147
1157
 
1148
- export {$65168f0452925da7$export$cbe2892587230861 as basistheory, $2e9038c0999bba06$export$dea6ebbc92df4fa3 as AUTOCOMPLETE_VALUES, $2e9038c0999bba06$export$51be6d94c4fcf45 as CARD_BRANDS, $2e9038c0999bba06$export$829c91d8f039f695 as CARD_ICON_POSITIONS, $6011935a2a75da1d$export$1748c2651c2c6e25 as VISA, $6011935a2a75da1d$export$1c604828de4cf9cf as MASTERCARD, $6011935a2a75da1d$export$67c5e4e99638ee87 as AMERICAN_EXPRESS, $6011935a2a75da1d$export$fcf88132c9601d5d as DINERS_CLUB, $6011935a2a75da1d$export$27b2e48e28163360 as DISCOVER, $6011935a2a75da1d$export$bf30f1ca7b266454 as JCB, $6011935a2a75da1d$export$8ed8e9ea6bbca19f as UNION_PAY, $6011935a2a75da1d$export$f08651c87c943e8 as MAESTRO, $6011935a2a75da1d$export$c4b8f606caaecf2c as ELO, $6011935a2a75da1d$export$58f9d4150439d06e as MIR, $6011935a2a75da1d$export$8f50e2757841117b as HIPER, $6011935a2a75da1d$export$adb072c9761d9e59 as HIPERCARD, $6011935a2a75da1d$export$35b475386df8059d as DEFAULT_CARD_TYPES, $a7c0ed47a726bc77$export$8dde18ea9019c560 as CoBadgedSupport, $0b7f2ce91f71c8fb$export$8141e4f9a897abe6 as ELEMENTS_TYPES, $ce70703c3ce2f3a0$export$e2bf52fc7723ec89 as SAFE_CSS_PROPERTIES, $ce70703c3ce2f3a0$export$93133f730762aee4 as BUTTON_CSS_PROPERTIES, $ce70703c3ce2f3a0$export$e22a44f86989e3f4 as SAFE_CSS_PROPERTIES_ALTERNATES, $ce70703c3ce2f3a0$export$b5b27feb4cf29129 as SAFE_CSS_PROPERTIES_WITH_ALTERNATES, $ce70703c3ce2f3a0$export$fc323aec0bf844b as CARD_ELEMENT_STYLE_VARIANT_SELECTORS, $ce70703c3ce2f3a0$export$8cce4e63ba22bae as BUTTON_ELEMENT_STYLE_VARIANT_SELECTORS, $ce70703c3ce2f3a0$export$a15fff7fac404fd9 as CARD_ELEMENT_STYLE_VARIANTS, $ce70703c3ce2f3a0$export$c3a88e1ff160bfd6 as CARD_ELEMENT_STYLE_FONTS_ATTR, $ce70703c3ce2f3a0$export$612b2fbe2f6ee5db as BUTTON_ELEMENT_STYLE_VARIANTS, $88bdfff2114854bc$export$f9a8af5874660c13 as DATA_CLASSIFICATIONS, $88bdfff2114854bc$export$7ea51ced9080f153 as DATA_IMPACT_LEVELS, $88bdfff2114854bc$export$23716d8c8b579500 as DATA_RESTRICTION_POLICIES, $cc8dceaa5ea02f81$export$5a9a4feb38dee587 as BasisTheoryApiError, $16b549d313b97bf4$export$925a29a6f046f0b5 as BasisTheoryValidationError, $3753a300b9392464$export$83d862a6bd4a93c5 as HttpClientError};
1158
+ export {$65168f0452925da7$export$cbe2892587230861 as basistheory, $2e9038c0999bba06$export$dea6ebbc92df4fa3 as AUTOCOMPLETE_VALUES, $2e9038c0999bba06$export$51be6d94c4fcf45 as CARD_BRANDS, $2e9038c0999bba06$export$829c91d8f039f695 as CARD_ICON_POSITIONS, $6011935a2a75da1d$export$1748c2651c2c6e25 as VISA, $6011935a2a75da1d$export$1c604828de4cf9cf as MASTERCARD, $6011935a2a75da1d$export$67c5e4e99638ee87 as AMERICAN_EXPRESS, $6011935a2a75da1d$export$fcf88132c9601d5d as DINERS_CLUB, $6011935a2a75da1d$export$27b2e48e28163360 as DISCOVER, $6011935a2a75da1d$export$bf30f1ca7b266454 as JCB, $6011935a2a75da1d$export$8ed8e9ea6bbca19f as UNION_PAY, $6011935a2a75da1d$export$f08651c87c943e8 as MAESTRO, $6011935a2a75da1d$export$c4b8f606caaecf2c as ELO, $6011935a2a75da1d$export$58f9d4150439d06e as MIR, $6011935a2a75da1d$export$8f50e2757841117b as HIPER, $6011935a2a75da1d$export$adb072c9761d9e59 as HIPERCARD, $6011935a2a75da1d$export$35b475386df8059d as DEFAULT_CARD_TYPES, $a7c0ed47a726bc77$export$8dde18ea9019c560 as CoBadgedSupport, $0b7f2ce91f71c8fb$export$8141e4f9a897abe6 as ELEMENTS_TYPES, $ce70703c3ce2f3a0$export$e2bf52fc7723ec89 as SAFE_CSS_PROPERTIES, $ce70703c3ce2f3a0$export$93133f730762aee4 as BUTTON_CSS_PROPERTIES, $ce70703c3ce2f3a0$export$e22a44f86989e3f4 as SAFE_CSS_PROPERTIES_ALTERNATES, $ce70703c3ce2f3a0$export$b5b27feb4cf29129 as SAFE_CSS_PROPERTIES_WITH_ALTERNATES, $ce70703c3ce2f3a0$export$fc323aec0bf844b as CARD_ELEMENT_STYLE_VARIANT_SELECTORS, $ce70703c3ce2f3a0$export$8cce4e63ba22bae as BUTTON_ELEMENT_STYLE_VARIANT_SELECTORS, $ce70703c3ce2f3a0$export$a15fff7fac404fd9 as CARD_ELEMENT_STYLE_VARIANTS, $ce70703c3ce2f3a0$export$c3a88e1ff160bfd6 as CARD_ELEMENT_STYLE_FONTS_ATTR, $ce70703c3ce2f3a0$export$612b2fbe2f6ee5db as BUTTON_ELEMENT_STYLE_VARIANTS, $88bdfff2114854bc$export$f9a8af5874660c13 as DATA_CLASSIFICATIONS, $88bdfff2114854bc$export$7ea51ced9080f153 as DATA_IMPACT_LEVELS, $88bdfff2114854bc$export$23716d8c8b579500 as DATA_RESTRICTION_POLICIES, $cc8dceaa5ea02f81$export$5a9a4feb38dee587 as BasisTheoryApiError, $16b549d313b97bf4$export$925a29a6f046f0b5 as BasisTheoryValidationError, $4a0c7371353b6fff$export$8b56781fadda32af as BasisTheoryConfigurationError, $3753a300b9392464$export$83d862a6bd4a93c5 as HttpClientError};
package/dist/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@basis-theory/web-elements",
3
- "version": "2.2.4",
4
- "repository": "https://github.com/basis-theory/web-elements",
3
+ "version": "2.4.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/basis-theory/web-elements.git"
7
+ },
5
8
  "license": "Apache-2.0",
6
9
  "author": {
7
10
  "name": "Basis Theory",
@@ -272,7 +272,7 @@ interface AutoCompleteOption {
272
272
  interface CardAutoCompleteOption {
273
273
  autoComplete?: CardElementAutoComplete;
274
274
  }
275
- export type CustomizableElementOptions = Pick<ElementOptions, 'binLookup' | 'cardTypes' | 'copyIconStyles' | 'coBadgedSupport' | 'disabled' | 'enableCopy' | 'inputMode' | 'readOnly' | 'skipLuhnValidation' | 'style' | 'validateOnChange'> & AutoCompleteOption;
275
+ export type CustomizableElementOptions = Pick<ElementOptions, 'binLookup' | 'cardTypes' | 'copyIconStyles' | 'disabled' | 'enableCopy' | 'inputMode' | 'readOnly' | 'skipLuhnValidation' | 'style' | 'validateOnChange'> & AutoCompleteOption;
276
276
  export type CardCustomizableElementOptions = Pick<ElementOptions, 'binLookup' | 'cardTypes' | 'copyIconStyles' | 'disabled' | 'enableCopy' | 'inputMode' | 'readOnly' | 'skipLuhnValidation' | 'style' | 'validateOnChange'> & CardAutoCompleteOption;
277
277
  type ElementValueType = 'static' | 'reference';
278
278
  export interface CardElementValue<T extends ElementValueType> {
@@ -308,6 +308,7 @@ export type CreateTextElementOptions = CustomizableElementOptions & Pick<Element
308
308
  export type UpdateTextElementOptions = Omit<CreateTextElementOptions, 'targetId' | 'mask' | 'validateOnChange'>;
309
309
  export type CreateCardNumberElementOptions = CustomizableElementOptions & Pick<ElementOptions, 'binLookup' | 'placeholder' | 'iconPosition' | 'cardTypes' | 'skipLuhnValidation' | 'title'> & Required<Pick<ElementOptions, 'targetId'>> & {
310
310
  'aria-label'?: string;
311
+ coBadgedSupport?: CoBadgedSupport[];
311
312
  value?: string;
312
313
  };
313
314
  export type UpdateCardNumberElementOptions = Omit<CreateCardNumberElementOptions, 'targetId' | 'validateOnChange' | 'enableCopy'>;
@@ -454,8 +455,8 @@ export type EncryptTokenModel<DataType = Primitive> = {
454
455
  tokenRequests: {
455
456
  [key: string]: Pick<CreateTokenModel<DataType>, 'data' | 'type'>;
456
457
  } | Pick<CreateTokenModel<DataType>, 'data' | 'type'>;
457
- public_key: string;
458
- key_id: string;
458
+ publicKeyPem: string;
459
+ keyId: string;
459
460
  };
460
461
  type EncryptedSingleToken = {
461
462
  encrypted: string;
@@ -546,6 +547,7 @@ interface RequestOptions {
546
547
  apiKey?: string;
547
548
  correlationId?: string;
548
549
  idempotencyKey?: string;
550
+ deviceInfo?: DeviceInfo;
549
551
  }
550
552
  type Create<T, C> = {
551
553
  create(model: C, options?: RequestOptions): Promise<T>;
@@ -703,6 +705,10 @@ export class BasisTheoryApiError extends Error {
703
705
  readonly _debug?: Record<string, unknown> | undefined;
704
706
  constructor(message: string, status: number, data?: unknown | undefined, _debug?: Record<string, unknown> | undefined);
705
707
  }
708
+ export class BasisTheoryConfigurationError<Details = Record<string, unknown>> extends Error {
709
+ readonly details: Details;
710
+ constructor(message: string, details: Details);
711
+ }
706
712
  export class HttpClientError extends Error {
707
713
  readonly status: number;
708
714
  readonly data?: unknown;
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@basis-theory/web-elements",
3
- "version": "2.2.4",
4
- "repository": "https://github.com/basis-theory/web-elements",
3
+ "version": "2.4.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/basis-theory/web-elements.git"
7
+ },
5
8
  "license": "Apache-2.0",
6
9
  "author": {
7
10
  "name": "Basis Theory",
package/CHANGELOG.md DELETED
@@ -1,461 +0,0 @@
1
- ## [2.2.4] - 2025-10-02
2
-
3
- ### Bug Fixes
4
-
5
- - d1a337b 2025-10-02 fix: network error message grammar (#531) by djejaquino@users.noreply.github.com
6
-
7
- ## [2.2.3] - 2025-10-01
8
-
9
- ### Bug Fixes
10
-
11
- - 9944676 2025-10-01 fix: focus service and style (#528) by kevin@basistheory.com
12
-
13
- ## [2.2.2] - 2025-09-17
14
-
15
- ### Bug Fixes
16
-
17
- - 0a6381b 2025-09-17 fix: telemetry env var names (#524) by kevin@basistheory.com
18
-
19
- ## [2.2.1] - 2025-09-16
20
-
21
- ### Bug Fixes
22
-
23
- - f548429 2025-09-16 fix(font-manager): define safe font sources before loading (#522) by kevin@basistheory.com
24
-
25
- ## [2.2.0] - 2025-09-12
26
-
27
- ### Features
28
-
29
- - 17f206f 2025-09-12 feat: add copy button to react elements (#521) by kevin@basistheory.com
30
-
31
- ## [2.1.0] - 2025-09-11
32
-
33
- ### Features
34
-
35
- - fdfaabf 2025-09-11 feat: adds copy button (#519) by brian.gonzalez@basistheory.com
36
- - 6503dd1 2025-09-08 feat: add support for domain whitelabeling (#510) by kevin@basistheory.com
37
-
38
- ## [2.0.0] - 2025-09-08
39
-
40
- ### Breaking Changes
41
-
42
- - eb651be 2025-08-29 feat!: remove material ui (#478) by kevin@basistheory.com
43
-
44
- ### Features
45
-
46
- - 5f3b347 2025-09-03 feat: collect device info (#516) by kevin@basistheory.com
47
- - c7f606d 2025-09-01 feat: allow style customization of elements container (#518) by kevin@basistheory.com
48
- - 97264fd 2025-08-21 feat: remove axios and btjs (#495) by kevin@basistheory.com
49
-
50
- ### Bug Fixes
51
-
52
- - 8dbb18a 2025-08-29 fix: make input field always transparent (#517) by kevin@basistheory.com
53
-
54
- ## [1.24.2] - 2025-08-21
55
-
56
- ### Bug Fixes
57
-
58
- - dd34449 2025-08-21 fix: exclude additional information without a brand attribute (#507) by ddiestras@gmail.com
59
-
60
- ## [1.24.1] - 2025-08-20
61
-
62
- ### Bug Fixes
63
-
64
- - 0ed2574 2025-08-19 fix: card element selectedNetwork validation error (#494) by kevin@basistheory.com
65
-
66
- ## [1.24.0] - 2025-08-18
67
-
68
- ### Features
69
-
70
- - f26e0d3 2025-08-18 feat: add brand network selector to card element (#490) by ddiestras@gmail.com
71
-
72
- ### Bug Fixes
73
-
74
- - 8ca03dd 2025-08-14 fix: abortSignal polyfill and card element autocomplete values (#491) by kevin@basistheory.com
75
-
76
- ## [1.23.1] - 2025-08-11
77
-
78
- ### Bug Fixes
79
-
80
- - 9f8f58f 2025-08-11 fix: override chrome autofill styles (#487) by kevin@basistheory.com
81
-
82
- ## [1.23.0] - 2025-08-07
83
-
84
- ### Features
85
-
86
- - fa3d978 2025-08-07 feat: setup new s3 deploys (#486) by mstrisoline@users.noreply.github.com
87
- - 2e2f754 2025-08-07 feat: add ability to do bin lookups for cards for web elements (#484) by ddiestras@gmail.com
88
-
89
- ### Bug Fixes
90
-
91
- - 1ee81e5 2025-07-30 test(tokens service): fix integration test (#482) by kevin@basistheory.com
92
-
93
- ### Chores
94
-
95
- - 0f7c5f7 2025-08-07 chore: invalid param for new s3 bucket (#489) by mstrisoline@users.noreply.github.com
96
- - 754fb0a 2025-08-07 chore: mised dev actons permissoins for aws auth (#488) by mstrisoline@users.noreply.github.com
97
- - 2bc55dc 2025-08-06 chore: disable r2 dns setup (#485) by mstrisoline@users.noreply.github.com
98
-
99
- ## [1.22.2] - 2025-07-29
100
-
101
- ### Bug Fixes
102
-
103
- - 528c197 2025-07-29 fix: release (#480) by kevin@basistheory.com
104
- - a9f3fae 2025-07-29 fix: revert latest (#479) by kevin@basistheory.com
105
-
106
- ## [1.22.1] - 2025-07-29
107
-
108
- ### Bug Fixes
109
-
110
- - a229582 2025-07-22 fix: do not snakeCase/camelCase tokenize (#477) by kevin@basistheory.com
111
-
112
- ## [1.22.0] - 2025-07-18
113
-
114
- ### Features
115
-
116
- - 0b69d0e 2025-07-18 feat: add uat deployment (#472) by mstrisoline@users.noreply.github.com
117
-
118
- ### Bug Fixes
119
-
120
- - c96c83f 2025-07-18 chore: fix uat tf action (#473) by mstrisoline@users.noreply.github.com
121
-
122
- ### Chores
123
-
124
- - 623272f 2025-07-18 chore: install rclone action (#475) by mstrisoline@users.noreply.github.com
125
- - 73118ce 2025-07-18 chore: ensure s3 elements deploy before r2 and tf (#474) by mstrisoline@users.noreply.github.com
126
- - ecfa61a 2025-07-17 chore: remove tfstate from deploy to cdn script (#471) by kevin@basistheory.com
127
- - 4537f72 2025-07-17 chore: gracefully handle publishing to existing version (#470) by kevin@basistheory.com
128
- - 6e95217 2025-07-17 chore: update generate-changelog-and-update-package-version.sh (#469) by kevin@basistheory.com
129
- - d729b30 2025-07-17 chore: set up prod deploy, cleanup workflows (#468) by mstrisoline@users.noreply.github.com
130
-
131
- ## [1.21.0] - 2025-07-17
132
-
133
- ### Features
134
-
135
- - e66f088 2025-07-17 feat: make network check opt-in (#466) by kevin@basistheory.com
136
- - 502dfa2 2025-07-16 feat: add parallel r2 deploy (#465) by mstrisoline@users.noreply.github.com
137
-
138
- ### Chores
139
-
140
- - 5f96c0e 2025-07-15 chore: updated tf (#464) by mstrisoline@users.noreply.github.com
141
- - a22cbd3 2025-07-15 chore: init tf r2 (#463) by mstrisoline@users.noreply.github.com
142
-
143
- ## [1.20.0] - 2025-07-15
144
-
145
- ### Features
146
-
147
- - 4ac2b5e 2025-07-15 feat: add useUat flag (#461) by kevin@basistheory.com
148
- - b89d5d8 2025-07-08 feat: bundle optimizations (#449) by kevin@basistheory.com
149
- - 606efff 2025-07-07 feat: bundle optimization (#448) by kevin@basistheory.com
150
-
151
- ### Bug Fixes
152
-
153
- - 2c8cc6c 2025-07-15 fix: port set from hosted (#462) by kevin@basistheory.com
154
- - 60b2dbd 2025-07-14 fix: remove resource hints from client (#460) by kevin@basistheory.com
155
- - 8ed50c3 2025-07-11 fix: `set` replacement edge cases (#459) by kevin@basistheory.com
156
-
157
- ### Chores
158
-
159
- - a80b10e 2025-07-10 chore: remove btjs from client and messages (#454) by kevin@basistheory.com
160
-
161
- ## [1.19.0] - 2025-07-07
162
-
163
- ### Features
164
-
165
- - 6a01b84 2025-07-03 feat: returning the token alias when encrypting multiple tokens (#451) by 62716969+washluis-alencar@users.noreply.github.com
166
- - 53553a2 2025-06-26 feat: allow encrypt token with plaintext by 62716969+washluis-alencar@users.noreply.github.com
167
-
168
- ### Chores
169
-
170
- - 0f92346 2025-07-07 chore: allow devs to purge the dev env cache via workflow (#452) by mstrisoline@users.noreply.github.com
171
-
172
- ## [1.18.0] - 2025-06-23
173
-
174
- ### Features
175
-
176
- - d24a772 2025-06-18 feat: add `_debug` to `tokens`, `tokenize` and `tokenIntents` (#443) by kevin@basistheory.com
177
-
178
- ### Bug Fixes
179
-
180
- - 7c2594a 2025-06-19 fix: favicon not found and supress findDomNode error from styling library (#445) by kevin@basistheory.com
181
- - ae48d23 2025-06-16 chore: fix integration tests (#440) by kevin@basistheory.com
182
- - 0013377 2025-06-16 fix: improve build output (#434) by kevin@basistheory.com
183
-
184
- ### Chores
185
-
186
- - 8825a3e 2025-06-23 chore: restore dev deploy action (#447) by kevin@basistheory.com
187
- - c5c38ad 2025-06-23 chore: reverts vite migration (#446) by kevin@basistheory.com
188
- - 5e1fc1d 2025-06-17 chore: make integration tests run (#442) by kevin@basistheory.com
189
- - 58ed8ea 2025-06-16 chore: update version import path (#441) by kevin@basistheory.com
190
-
191
- ## [1.17.0] - 2025-06-16
192
-
193
- ### Features
194
-
195
- - a09d6a9 2025-06-16 feat: add \_debug to `BasisTheoryApiError` (#439) by kevin@basistheory.com
196
-
197
- ## [1.16.0] - 2025-06-10
198
-
199
- ### Features
200
-
201
- - c47500b 2025-06-10 feat(eng-8293): fix token encryption (#438) by 62716969+washluis-alencar@users.noreply.github.com
202
- - d44d028 2025-06-09 feat: add encrypt method (#435) by 62716969+washluis-alencar@users.noreply.github.com
203
-
204
- ## [1.15.0] - 2025-06-09
205
-
206
- ### Features
207
-
208
- - 6569baf 2025-06-06 feat(eng-8603): export types from /common (#436) by 62716969+washluis-alencar@users.noreply.github.com
209
-
210
- ## [1.14.1] - 2025-06-04
211
-
212
- ### Bug Fixes
213
-
214
- - 34820f1 2025-06-03 fix: add iframe title type to react elements (#433) by kevin@basistheory.com
215
-
216
- ## [1.14.0] - 2025-06-03
217
-
218
- ### Features
219
-
220
- - b3f5c0c 2025-06-03 feat: add custom iframe title (#431) by kevin@basistheory.com
221
- - f458627 2025-05-29 feat: detect when network issues prevent elements from loading (#429) by kevin@basistheory.com
222
- - 7c49687 2025-05-29 feat(card element): add support for autocomplete (#428) by kevin@basistheory.com
223
-
224
- ### Bug Fixes
225
-
226
- - 0fa1fc1 2025-05-30 fix: improve net check for mobile devices on slow networks (#430) by kevin@basistheory.com
227
-
228
- ## [1.13.1] - 2025-05-27
229
-
230
- ### Bug Fixes
231
-
232
- - 99b9550 2025-05-26 fix: surface validate in all elements (#427) by kevin@basistheory.com
233
- - 2d77b78 2025-05-26 fix: re-export card types (#426) by kevin@basistheory.com
234
-
235
- ## [1.13.0] - 2025-05-13
236
-
237
- ### Features
238
-
239
- - 9e76de8 2025-05-13 feat: add validate to text element (#425) by kevin@basistheory.com
240
- - 57126ea 2025-05-08 feat: add manual validation for split card elements (#423) by kevin@basistheory.com
241
-
242
- ## [1.12.2] - 2025-05-08
243
-
244
- ### Bug Fixes
245
-
246
- - ea9a43c 2025-05-08 fix: remove false positive valueResolutionFailure (#424) by kevin@basistheory.com
247
-
248
- ## [1.12.1] - 2025-04-24
249
-
250
- ### Bug Fixes
251
-
252
- - 7e60786 2025-04-24 fix: patch BTJS/axios (#422) by kevin@basistheory.com
253
-
254
- ## [1.12.0] - 2025-04-24
255
-
256
- ### Features
257
-
258
- - 1e166f1 2025-04-23 feat(CardElement): add stack layout for mobile views (#421) by kevin@basistheory.com
259
-
260
- ## [1.11.8] - 2025-04-21
261
-
262
- ### Bug Fixes
263
-
264
- - 1e22daa 2025-04-18 fix: remove process var from logging (#420) by kevin@basistheory.com
265
-
266
- ## [1.11.7] - 2025-04-16
267
-
268
- ### Bug Fixes
269
-
270
- - 0d471cd 2025-04-16 fix: add cardDetails to enrichments (#419) by kevin@basistheory.com
271
-
272
- ## [1.11.6] - 2025-04-09
273
-
274
- ### Bug Fixes
275
-
276
- - 5d23abe 2025-04-09 fix: remove dependency on env variables (#418) by kevin@basistheory.com
277
-
278
- ## [1.11.5] - 2025-04-08
279
-
280
- ### Bug Fixes
281
-
282
- - e89c349 2025-04-04 fix: text element validation and elements masking (#415) by kevin@basistheory.com
283
- - f4ef076 2025-04-03 fix: avoid dupped elementWindows (#416) by kevin@basistheory.com
284
-
285
- ## [1.11.4] - 2025-03-26
286
-
287
- ### Bug Fixes
288
-
289
- - 50b67d0 2025-03-25 fix: move export to its own file (#411) by kevin@basistheory.com
290
- - 0510ce8 2025-03-25 fix: export web-elements (#410) by kevin@basistheory.com
291
- - a5b6d8f 2025-03-25 fix(text element): expose validateOnChange (#408) by kevin@basistheory.com
292
-
293
- ### Chores
294
-
295
- - 8203052 2025-03-25 chore: let parcel handle type generation (#414) by kevin@basistheory.com
296
- - 507db5c 2025-03-25 chore: split type declaration config from build (#413) by kevin@basistheory.com
297
- - 7fccd68 2025-03-25 chore: upgrade ts (#412) by kevin@basistheory.com
298
-
299
- ## [1.11.3] - 2025-03-21
300
-
301
- ### Bug Fixes
302
-
303
- - 0ec13fd 2025-03-21 fix: types path (#407) by kevin@basistheory.com
304
-
305
- ## [1.11.2] - 2025-03-21
306
-
307
- ### Bug Fixes
308
-
309
- - 3bb6965 2025-03-20 fix: data-element mounting (#406) by kevin@basistheory.com
310
-
311
- ## [1.11.1] - 2025-03-20
312
-
313
- ### Bug Fixes
314
-
315
- - 46b4c73 2025-03-20 fix: export web elements from `types` path (#405) by kevin@basistheory.com
316
-
317
- ## [1.11.0] - 2025-03-20
318
-
319
- ### Features
320
-
321
- - 5e3c058 2025-03-20 feat: re-export types from web elements (#404) by kevin@basistheory.com
322
-
323
- ## [1.10.0] - 2025-03-18
324
-
325
- ### Features
326
-
327
- - be57c49 2025-03-18 feat: enable same origin api calls by default (#401) by kevin@basistheory.com
328
- - 440fd31 2025-03-13 feat: add sri hash generation for static iframe assets (#398) by kevin@basistheory.com
329
-
330
- ### Bug Fixes
331
-
332
- - be4129d 2025-03-18 fix: elements init options ordered incorrectly (#403) by kevin@basistheory.com
333
- - 6c0271f 2025-03-18 fix: patch axios (#402) by kevin@basistheory.com
334
-
335
- ## [1.9.0] - 2025-03-13
336
-
337
- ### Features
338
-
339
- - 4e13acd 2025-03-12 feat: generate versioned SRI for web-elements loader (#399) by kevin@basistheory.com
340
-
341
- ### Bug Fixes
342
-
343
- - c148762 2025-03-13 fix: add dd rum url to csp (#400) by kevin@basistheory.com
344
-
345
- ### Chores
346
-
347
- - dfc875d 2025-03-10 chore: add Elements PCI inventory script to PR check (#397) by brandon@basistheory.com
348
-
349
- ## [1.8.0] - 2025-03-07
350
-
351
- ### Features
352
-
353
- - 0a14886 2025-03-07 feat(eng-8106): adding issuerCountry field into token intent model (#396) by 62716969+washluis-alencar@users.noreply.github.com
354
-
355
- ## [1.7.3] - 2025-03-07
356
-
357
- ### Bug Fixes
358
-
359
- - ccf800e 2025-03-05 fix: revert createServiceRequestPayload by kevin@basistheory.com
360
-
361
- ## [1.7.2] - 2025-02-20
362
-
363
- ### Bug Fixes
364
-
365
- - 992b619 2025-02-20 fix(react-elements): sync version upon release (#394) by kevin@basistheory.com
366
-
367
- ## [1.7.1] - 2025-02-20
368
-
369
- ### Bug Fixes
370
-
371
- - ff9923a 2025-02-19 fix: update package version upon release (#393) by kevin@basistheory.com
372
-
373
- ## [1.7.0] - 2025-02-19
374
-
375
- ### Features
376
-
377
- - b2dd527 2025-02-19 feat: improve logging when retrieving values from unmounted components (#391) by kevin@basistheory.com
378
- - 4b95046 2025-02-18 feat: add more logs around element value resolution/timeouts (#390) by kevin@basistheory.com
379
- - 73670c3 2025-02-13 feat: add react-elements (#386) by kevin@basistheory.com
380
-
381
- ## [1.6.0] - 2025-02-11
382
-
383
- ### Features
384
-
385
- - 95bd0a5 2025-02-11 feat: adds sessions.create (#385) by kevin@basistheory.com
386
-
387
- ### Bug Fixes
388
-
389
- - e692cd8 2025-02-11 fix: fix double log (#387) by lucas@basistheory.com
390
-
391
- ## [1.5.0] - 2025-02-06
392
-
393
- ### Features
394
-
395
- - d9c1408 2025-02-04 feat: adds versioning (#379) by kevin@basistheory.com
396
-
397
- ### Bug Fixes
398
-
399
- - 429a5c8 2025-02-04 test: update playwright fixtures (#382) by kevin@basistheory.com
400
- - d609a6a 2025-02-04 fix: deploy versioned client/hosted (#381) by kevin@basistheory.com
401
-
402
- ## [1.4.0] - 2025-02-03
403
-
404
- ### Features
405
-
406
- - 1a231c7 2025-01-31 feat: add debug object (#380) by lucas@basistheory.com
407
-
408
- ## [1.3.1] - 2025-01-29
409
-
410
- ### Bug Fixes
411
-
412
- - 94b96cf 2025-01-29 fix: add status to detokenize response msg (#378) by lucas@basistheory.com
413
-
414
- ## [1.3.0] - 2025-01-28
415
-
416
- ### Features
417
-
418
- - 77f1130 2025-01-28 feat: logging improvements (#372) by lucas@basistheory.com
419
-
420
- ## [1.2.5] - 2025-01-27
421
-
422
- ### Bug Fixes
423
-
424
- - 32961d4 2025-01-27 fix: sync up with last release (#376) by kevin@basistheory.com
425
-
426
- ## [1.2.4] - 2025-01-27
427
-
428
- ### Features
429
-
430
- - 9b65521 2025-01-22 feat: port logging from btjs (#363) by kevin@basistheory.com
431
- - 1e1e956 2025-01-21 feat: deploy web-elements to cdn and npm (#355) by kevin@basistheory.com
432
- - f93ff0a 2025-01-16 feat: bump js sdk (#357) by lucas@basistheory.com
433
- - 53424ce 2025-01-14 feat: avoid logger conflicts (#356) by lucas@basistheory.com
434
- - f6a7f10 2025-01-14 feat: add useSameOriginApi prop (#354) by lucas@basistheory.com
435
- - 836e648 2025-01-13 feat: logging overhaul (#349) by lucas@basistheory.com
436
- - 96ed3bd 2025-01-09 feat: surface metadata in onblur event (#348) by kevin@basistheory.com
437
- - d6f63e7 2024-12-23 feat: toggle telemetry (#345) by kevin@basistheory.com
438
-
439
- ### Bug Fixes
440
-
441
- - 57a6040 2025-01-23 fix: web-elements version generation (#367) by kevin@basistheory.com
442
- - 31b4a10 2025-01-23 fix: adds gh token to prod workflow (#366) by kevin@basistheory.com
443
- - b6276df 2025-01-23 fix: rename web-elements package (#365) by kevin@basistheory.com
444
- - 7725c5f 2025-01-21 fix: deploy loader instead of client (#362) by kevin@basistheory.com
445
- - 06808a4 2025-01-20 fix: add html extension for deployed hosted elements (#361) by lucas@basistheory.com
446
- - c10758f 2025-01-17 fix: bump btjs to fix error interceptor (#359) by lucas@basistheory.com
447
- - fc7cdca 2025-01-17 fix: add datadog http intake to csp (#358) by lucas@basistheory.com
448
- - d97e813 2025-01-14 fix: prevent overriding log service value (#353) by lucas@basistheory.com
449
- - 26e89dc 2025-01-13 fix: reverts versioning (#352) by kevin@basistheory.com
450
- - 1a05850 2025-01-10 fix: version paths across elements client and hosted (#351) by kevin@basistheory.com
451
- - 827e1b1 2025-01-10 ci: fix pathing (#350) by kevin@basistheory.com
452
- - bcffe10 2025-01-09 fix: patch axios (#346) by kevin@basistheory.com
453
- - 1a25ebe 2025-01-09 fix: patch express and body-parser (#347) by kevin@basistheory.com
454
- - af85c64 2025-01-24 fix: update CHANGELOG.md (#371) by kevin@basistheory.com
455
- - cc320fa 2025-01-24 fix: double the timeout for retrieving elements values (#370) by lucas@basistheory.com
456
- - 3688baa 2025-01-24 fix: log additional details (#369) by kevin@basistheory.com
457
-
458
- ### Chores
459
-
460
- - 955d7d4 2025-01-10 chore: deploy web-elements (#343) by kevin@basistheory.com
461
- - Deploy web-elements package