@basis-theory/web-elements 2.3.0 → 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.
- package/dist/bundle/index.js +1 -1
- package/dist/main/index.js +11 -1
- package/dist/module/module.js +12 -2
- package/dist/package.json +5 -2
- package/dist/types/index.d.ts +6 -2
- package/package.json +5 -2
- package/CHANGELOG.md +0 -468
package/dist/bundle/index.js
CHANGED
|
@@ -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.3.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),"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)}();
|
package/dist/main/index.js
CHANGED
|
@@ -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.
|
|
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);
|
package/dist/module/module.js
CHANGED
|
@@ -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.
|
|
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.
|
|
4
|
-
"repository":
|
|
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/dist/types/index.d.ts
CHANGED
|
@@ -455,8 +455,8 @@ export type EncryptTokenModel<DataType = Primitive> = {
|
|
|
455
455
|
tokenRequests: {
|
|
456
456
|
[key: string]: Pick<CreateTokenModel<DataType>, 'data' | 'type'>;
|
|
457
457
|
} | Pick<CreateTokenModel<DataType>, 'data' | 'type'>;
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
publicKeyPem: string;
|
|
459
|
+
keyId: string;
|
|
460
460
|
};
|
|
461
461
|
type EncryptedSingleToken = {
|
|
462
462
|
encrypted: string;
|
|
@@ -705,6 +705,10 @@ export class BasisTheoryApiError extends Error {
|
|
|
705
705
|
readonly _debug?: Record<string, unknown> | undefined;
|
|
706
706
|
constructor(message: string, status: number, data?: unknown | undefined, _debug?: Record<string, unknown> | undefined);
|
|
707
707
|
}
|
|
708
|
+
export class BasisTheoryConfigurationError<Details = Record<string, unknown>> extends Error {
|
|
709
|
+
readonly details: Details;
|
|
710
|
+
constructor(message: string, details: Details);
|
|
711
|
+
}
|
|
708
712
|
export class HttpClientError extends Error {
|
|
709
713
|
readonly status: number;
|
|
710
714
|
readonly data?: unknown;
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/web-elements",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"repository":
|
|
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,468 +0,0 @@
|
|
|
1
|
-
## [2.3.0] - 2025-10-08
|
|
2
|
-
|
|
3
|
-
### Features
|
|
4
|
-
|
|
5
|
-
- 7848672 2025-10-08 feat: add co-badged support to the CardNumberElement (#532) by ddiestras@gmail.com
|
|
6
|
-
- 52e16a7 2025-10-03 feat: send device info in requests (#526) by ddiestras@gmail.com
|
|
7
|
-
|
|
8
|
-
## [2.2.4] - 2025-10-02
|
|
9
|
-
|
|
10
|
-
### Bug Fixes
|
|
11
|
-
|
|
12
|
-
- d1a337b 2025-10-02 fix: network error message grammar (#531) by djejaquino@users.noreply.github.com
|
|
13
|
-
|
|
14
|
-
## [2.2.3] - 2025-10-01
|
|
15
|
-
|
|
16
|
-
### Bug Fixes
|
|
17
|
-
|
|
18
|
-
- 9944676 2025-10-01 fix: focus service and style (#528) by kevin@basistheory.com
|
|
19
|
-
|
|
20
|
-
## [2.2.2] - 2025-09-17
|
|
21
|
-
|
|
22
|
-
### Bug Fixes
|
|
23
|
-
|
|
24
|
-
- 0a6381b 2025-09-17 fix: telemetry env var names (#524) by kevin@basistheory.com
|
|
25
|
-
|
|
26
|
-
## [2.2.1] - 2025-09-16
|
|
27
|
-
|
|
28
|
-
### Bug Fixes
|
|
29
|
-
|
|
30
|
-
- f548429 2025-09-16 fix(font-manager): define safe font sources before loading (#522) by kevin@basistheory.com
|
|
31
|
-
|
|
32
|
-
## [2.2.0] - 2025-09-12
|
|
33
|
-
|
|
34
|
-
### Features
|
|
35
|
-
|
|
36
|
-
- 17f206f 2025-09-12 feat: add copy button to react elements (#521) by kevin@basistheory.com
|
|
37
|
-
|
|
38
|
-
## [2.1.0] - 2025-09-11
|
|
39
|
-
|
|
40
|
-
### Features
|
|
41
|
-
|
|
42
|
-
- fdfaabf 2025-09-11 feat: adds copy button (#519) by brian.gonzalez@basistheory.com
|
|
43
|
-
- 6503dd1 2025-09-08 feat: add support for domain whitelabeling (#510) by kevin@basistheory.com
|
|
44
|
-
|
|
45
|
-
## [2.0.0] - 2025-09-08
|
|
46
|
-
|
|
47
|
-
### Breaking Changes
|
|
48
|
-
|
|
49
|
-
- eb651be 2025-08-29 feat!: remove material ui (#478) by kevin@basistheory.com
|
|
50
|
-
|
|
51
|
-
### Features
|
|
52
|
-
|
|
53
|
-
- 5f3b347 2025-09-03 feat: collect device info (#516) by kevin@basistheory.com
|
|
54
|
-
- c7f606d 2025-09-01 feat: allow style customization of elements container (#518) by kevin@basistheory.com
|
|
55
|
-
- 97264fd 2025-08-21 feat: remove axios and btjs (#495) by kevin@basistheory.com
|
|
56
|
-
|
|
57
|
-
### Bug Fixes
|
|
58
|
-
|
|
59
|
-
- 8dbb18a 2025-08-29 fix: make input field always transparent (#517) by kevin@basistheory.com
|
|
60
|
-
|
|
61
|
-
## [1.24.2] - 2025-08-21
|
|
62
|
-
|
|
63
|
-
### Bug Fixes
|
|
64
|
-
|
|
65
|
-
- dd34449 2025-08-21 fix: exclude additional information without a brand attribute (#507) by ddiestras@gmail.com
|
|
66
|
-
|
|
67
|
-
## [1.24.1] - 2025-08-20
|
|
68
|
-
|
|
69
|
-
### Bug Fixes
|
|
70
|
-
|
|
71
|
-
- 0ed2574 2025-08-19 fix: card element selectedNetwork validation error (#494) by kevin@basistheory.com
|
|
72
|
-
|
|
73
|
-
## [1.24.0] - 2025-08-18
|
|
74
|
-
|
|
75
|
-
### Features
|
|
76
|
-
|
|
77
|
-
- f26e0d3 2025-08-18 feat: add brand network selector to card element (#490) by ddiestras@gmail.com
|
|
78
|
-
|
|
79
|
-
### Bug Fixes
|
|
80
|
-
|
|
81
|
-
- 8ca03dd 2025-08-14 fix: abortSignal polyfill and card element autocomplete values (#491) by kevin@basistheory.com
|
|
82
|
-
|
|
83
|
-
## [1.23.1] - 2025-08-11
|
|
84
|
-
|
|
85
|
-
### Bug Fixes
|
|
86
|
-
|
|
87
|
-
- 9f8f58f 2025-08-11 fix: override chrome autofill styles (#487) by kevin@basistheory.com
|
|
88
|
-
|
|
89
|
-
## [1.23.0] - 2025-08-07
|
|
90
|
-
|
|
91
|
-
### Features
|
|
92
|
-
|
|
93
|
-
- fa3d978 2025-08-07 feat: setup new s3 deploys (#486) by mstrisoline@users.noreply.github.com
|
|
94
|
-
- 2e2f754 2025-08-07 feat: add ability to do bin lookups for cards for web elements (#484) by ddiestras@gmail.com
|
|
95
|
-
|
|
96
|
-
### Bug Fixes
|
|
97
|
-
|
|
98
|
-
- 1ee81e5 2025-07-30 test(tokens service): fix integration test (#482) by kevin@basistheory.com
|
|
99
|
-
|
|
100
|
-
### Chores
|
|
101
|
-
|
|
102
|
-
- 0f7c5f7 2025-08-07 chore: invalid param for new s3 bucket (#489) by mstrisoline@users.noreply.github.com
|
|
103
|
-
- 754fb0a 2025-08-07 chore: mised dev actons permissoins for aws auth (#488) by mstrisoline@users.noreply.github.com
|
|
104
|
-
- 2bc55dc 2025-08-06 chore: disable r2 dns setup (#485) by mstrisoline@users.noreply.github.com
|
|
105
|
-
|
|
106
|
-
## [1.22.2] - 2025-07-29
|
|
107
|
-
|
|
108
|
-
### Bug Fixes
|
|
109
|
-
|
|
110
|
-
- 528c197 2025-07-29 fix: release (#480) by kevin@basistheory.com
|
|
111
|
-
- a9f3fae 2025-07-29 fix: revert latest (#479) by kevin@basistheory.com
|
|
112
|
-
|
|
113
|
-
## [1.22.1] - 2025-07-29
|
|
114
|
-
|
|
115
|
-
### Bug Fixes
|
|
116
|
-
|
|
117
|
-
- a229582 2025-07-22 fix: do not snakeCase/camelCase tokenize (#477) by kevin@basistheory.com
|
|
118
|
-
|
|
119
|
-
## [1.22.0] - 2025-07-18
|
|
120
|
-
|
|
121
|
-
### Features
|
|
122
|
-
|
|
123
|
-
- 0b69d0e 2025-07-18 feat: add uat deployment (#472) by mstrisoline@users.noreply.github.com
|
|
124
|
-
|
|
125
|
-
### Bug Fixes
|
|
126
|
-
|
|
127
|
-
- c96c83f 2025-07-18 chore: fix uat tf action (#473) by mstrisoline@users.noreply.github.com
|
|
128
|
-
|
|
129
|
-
### Chores
|
|
130
|
-
|
|
131
|
-
- 623272f 2025-07-18 chore: install rclone action (#475) by mstrisoline@users.noreply.github.com
|
|
132
|
-
- 73118ce 2025-07-18 chore: ensure s3 elements deploy before r2 and tf (#474) by mstrisoline@users.noreply.github.com
|
|
133
|
-
- ecfa61a 2025-07-17 chore: remove tfstate from deploy to cdn script (#471) by kevin@basistheory.com
|
|
134
|
-
- 4537f72 2025-07-17 chore: gracefully handle publishing to existing version (#470) by kevin@basistheory.com
|
|
135
|
-
- 6e95217 2025-07-17 chore: update generate-changelog-and-update-package-version.sh (#469) by kevin@basistheory.com
|
|
136
|
-
- d729b30 2025-07-17 chore: set up prod deploy, cleanup workflows (#468) by mstrisoline@users.noreply.github.com
|
|
137
|
-
|
|
138
|
-
## [1.21.0] - 2025-07-17
|
|
139
|
-
|
|
140
|
-
### Features
|
|
141
|
-
|
|
142
|
-
- e66f088 2025-07-17 feat: make network check opt-in (#466) by kevin@basistheory.com
|
|
143
|
-
- 502dfa2 2025-07-16 feat: add parallel r2 deploy (#465) by mstrisoline@users.noreply.github.com
|
|
144
|
-
|
|
145
|
-
### Chores
|
|
146
|
-
|
|
147
|
-
- 5f96c0e 2025-07-15 chore: updated tf (#464) by mstrisoline@users.noreply.github.com
|
|
148
|
-
- a22cbd3 2025-07-15 chore: init tf r2 (#463) by mstrisoline@users.noreply.github.com
|
|
149
|
-
|
|
150
|
-
## [1.20.0] - 2025-07-15
|
|
151
|
-
|
|
152
|
-
### Features
|
|
153
|
-
|
|
154
|
-
- 4ac2b5e 2025-07-15 feat: add useUat flag (#461) by kevin@basistheory.com
|
|
155
|
-
- b89d5d8 2025-07-08 feat: bundle optimizations (#449) by kevin@basistheory.com
|
|
156
|
-
- 606efff 2025-07-07 feat: bundle optimization (#448) by kevin@basistheory.com
|
|
157
|
-
|
|
158
|
-
### Bug Fixes
|
|
159
|
-
|
|
160
|
-
- 2c8cc6c 2025-07-15 fix: port set from hosted (#462) by kevin@basistheory.com
|
|
161
|
-
- 60b2dbd 2025-07-14 fix: remove resource hints from client (#460) by kevin@basistheory.com
|
|
162
|
-
- 8ed50c3 2025-07-11 fix: `set` replacement edge cases (#459) by kevin@basistheory.com
|
|
163
|
-
|
|
164
|
-
### Chores
|
|
165
|
-
|
|
166
|
-
- a80b10e 2025-07-10 chore: remove btjs from client and messages (#454) by kevin@basistheory.com
|
|
167
|
-
|
|
168
|
-
## [1.19.0] - 2025-07-07
|
|
169
|
-
|
|
170
|
-
### Features
|
|
171
|
-
|
|
172
|
-
- 6a01b84 2025-07-03 feat: returning the token alias when encrypting multiple tokens (#451) by 62716969+washluis-alencar@users.noreply.github.com
|
|
173
|
-
- 53553a2 2025-06-26 feat: allow encrypt token with plaintext by 62716969+washluis-alencar@users.noreply.github.com
|
|
174
|
-
|
|
175
|
-
### Chores
|
|
176
|
-
|
|
177
|
-
- 0f92346 2025-07-07 chore: allow devs to purge the dev env cache via workflow (#452) by mstrisoline@users.noreply.github.com
|
|
178
|
-
|
|
179
|
-
## [1.18.0] - 2025-06-23
|
|
180
|
-
|
|
181
|
-
### Features
|
|
182
|
-
|
|
183
|
-
- d24a772 2025-06-18 feat: add `_debug` to `tokens`, `tokenize` and `tokenIntents` (#443) by kevin@basistheory.com
|
|
184
|
-
|
|
185
|
-
### Bug Fixes
|
|
186
|
-
|
|
187
|
-
- 7c2594a 2025-06-19 fix: favicon not found and supress findDomNode error from styling library (#445) by kevin@basistheory.com
|
|
188
|
-
- ae48d23 2025-06-16 chore: fix integration tests (#440) by kevin@basistheory.com
|
|
189
|
-
- 0013377 2025-06-16 fix: improve build output (#434) by kevin@basistheory.com
|
|
190
|
-
|
|
191
|
-
### Chores
|
|
192
|
-
|
|
193
|
-
- 8825a3e 2025-06-23 chore: restore dev deploy action (#447) by kevin@basistheory.com
|
|
194
|
-
- c5c38ad 2025-06-23 chore: reverts vite migration (#446) by kevin@basistheory.com
|
|
195
|
-
- 5e1fc1d 2025-06-17 chore: make integration tests run (#442) by kevin@basistheory.com
|
|
196
|
-
- 58ed8ea 2025-06-16 chore: update version import path (#441) by kevin@basistheory.com
|
|
197
|
-
|
|
198
|
-
## [1.17.0] - 2025-06-16
|
|
199
|
-
|
|
200
|
-
### Features
|
|
201
|
-
|
|
202
|
-
- a09d6a9 2025-06-16 feat: add \_debug to `BasisTheoryApiError` (#439) by kevin@basistheory.com
|
|
203
|
-
|
|
204
|
-
## [1.16.0] - 2025-06-10
|
|
205
|
-
|
|
206
|
-
### Features
|
|
207
|
-
|
|
208
|
-
- c47500b 2025-06-10 feat(eng-8293): fix token encryption (#438) by 62716969+washluis-alencar@users.noreply.github.com
|
|
209
|
-
- d44d028 2025-06-09 feat: add encrypt method (#435) by 62716969+washluis-alencar@users.noreply.github.com
|
|
210
|
-
|
|
211
|
-
## [1.15.0] - 2025-06-09
|
|
212
|
-
|
|
213
|
-
### Features
|
|
214
|
-
|
|
215
|
-
- 6569baf 2025-06-06 feat(eng-8603): export types from /common (#436) by 62716969+washluis-alencar@users.noreply.github.com
|
|
216
|
-
|
|
217
|
-
## [1.14.1] - 2025-06-04
|
|
218
|
-
|
|
219
|
-
### Bug Fixes
|
|
220
|
-
|
|
221
|
-
- 34820f1 2025-06-03 fix: add iframe title type to react elements (#433) by kevin@basistheory.com
|
|
222
|
-
|
|
223
|
-
## [1.14.0] - 2025-06-03
|
|
224
|
-
|
|
225
|
-
### Features
|
|
226
|
-
|
|
227
|
-
- b3f5c0c 2025-06-03 feat: add custom iframe title (#431) by kevin@basistheory.com
|
|
228
|
-
- f458627 2025-05-29 feat: detect when network issues prevent elements from loading (#429) by kevin@basistheory.com
|
|
229
|
-
- 7c49687 2025-05-29 feat(card element): add support for autocomplete (#428) by kevin@basistheory.com
|
|
230
|
-
|
|
231
|
-
### Bug Fixes
|
|
232
|
-
|
|
233
|
-
- 0fa1fc1 2025-05-30 fix: improve net check for mobile devices on slow networks (#430) by kevin@basistheory.com
|
|
234
|
-
|
|
235
|
-
## [1.13.1] - 2025-05-27
|
|
236
|
-
|
|
237
|
-
### Bug Fixes
|
|
238
|
-
|
|
239
|
-
- 99b9550 2025-05-26 fix: surface validate in all elements (#427) by kevin@basistheory.com
|
|
240
|
-
- 2d77b78 2025-05-26 fix: re-export card types (#426) by kevin@basistheory.com
|
|
241
|
-
|
|
242
|
-
## [1.13.0] - 2025-05-13
|
|
243
|
-
|
|
244
|
-
### Features
|
|
245
|
-
|
|
246
|
-
- 9e76de8 2025-05-13 feat: add validate to text element (#425) by kevin@basistheory.com
|
|
247
|
-
- 57126ea 2025-05-08 feat: add manual validation for split card elements (#423) by kevin@basistheory.com
|
|
248
|
-
|
|
249
|
-
## [1.12.2] - 2025-05-08
|
|
250
|
-
|
|
251
|
-
### Bug Fixes
|
|
252
|
-
|
|
253
|
-
- ea9a43c 2025-05-08 fix: remove false positive valueResolutionFailure (#424) by kevin@basistheory.com
|
|
254
|
-
|
|
255
|
-
## [1.12.1] - 2025-04-24
|
|
256
|
-
|
|
257
|
-
### Bug Fixes
|
|
258
|
-
|
|
259
|
-
- 7e60786 2025-04-24 fix: patch BTJS/axios (#422) by kevin@basistheory.com
|
|
260
|
-
|
|
261
|
-
## [1.12.0] - 2025-04-24
|
|
262
|
-
|
|
263
|
-
### Features
|
|
264
|
-
|
|
265
|
-
- 1e166f1 2025-04-23 feat(CardElement): add stack layout for mobile views (#421) by kevin@basistheory.com
|
|
266
|
-
|
|
267
|
-
## [1.11.8] - 2025-04-21
|
|
268
|
-
|
|
269
|
-
### Bug Fixes
|
|
270
|
-
|
|
271
|
-
- 1e22daa 2025-04-18 fix: remove process var from logging (#420) by kevin@basistheory.com
|
|
272
|
-
|
|
273
|
-
## [1.11.7] - 2025-04-16
|
|
274
|
-
|
|
275
|
-
### Bug Fixes
|
|
276
|
-
|
|
277
|
-
- 0d471cd 2025-04-16 fix: add cardDetails to enrichments (#419) by kevin@basistheory.com
|
|
278
|
-
|
|
279
|
-
## [1.11.6] - 2025-04-09
|
|
280
|
-
|
|
281
|
-
### Bug Fixes
|
|
282
|
-
|
|
283
|
-
- 5d23abe 2025-04-09 fix: remove dependency on env variables (#418) by kevin@basistheory.com
|
|
284
|
-
|
|
285
|
-
## [1.11.5] - 2025-04-08
|
|
286
|
-
|
|
287
|
-
### Bug Fixes
|
|
288
|
-
|
|
289
|
-
- e89c349 2025-04-04 fix: text element validation and elements masking (#415) by kevin@basistheory.com
|
|
290
|
-
- f4ef076 2025-04-03 fix: avoid dupped elementWindows (#416) by kevin@basistheory.com
|
|
291
|
-
|
|
292
|
-
## [1.11.4] - 2025-03-26
|
|
293
|
-
|
|
294
|
-
### Bug Fixes
|
|
295
|
-
|
|
296
|
-
- 50b67d0 2025-03-25 fix: move export to its own file (#411) by kevin@basistheory.com
|
|
297
|
-
- 0510ce8 2025-03-25 fix: export web-elements (#410) by kevin@basistheory.com
|
|
298
|
-
- a5b6d8f 2025-03-25 fix(text element): expose validateOnChange (#408) by kevin@basistheory.com
|
|
299
|
-
|
|
300
|
-
### Chores
|
|
301
|
-
|
|
302
|
-
- 8203052 2025-03-25 chore: let parcel handle type generation (#414) by kevin@basistheory.com
|
|
303
|
-
- 507db5c 2025-03-25 chore: split type declaration config from build (#413) by kevin@basistheory.com
|
|
304
|
-
- 7fccd68 2025-03-25 chore: upgrade ts (#412) by kevin@basistheory.com
|
|
305
|
-
|
|
306
|
-
## [1.11.3] - 2025-03-21
|
|
307
|
-
|
|
308
|
-
### Bug Fixes
|
|
309
|
-
|
|
310
|
-
- 0ec13fd 2025-03-21 fix: types path (#407) by kevin@basistheory.com
|
|
311
|
-
|
|
312
|
-
## [1.11.2] - 2025-03-21
|
|
313
|
-
|
|
314
|
-
### Bug Fixes
|
|
315
|
-
|
|
316
|
-
- 3bb6965 2025-03-20 fix: data-element mounting (#406) by kevin@basistheory.com
|
|
317
|
-
|
|
318
|
-
## [1.11.1] - 2025-03-20
|
|
319
|
-
|
|
320
|
-
### Bug Fixes
|
|
321
|
-
|
|
322
|
-
- 46b4c73 2025-03-20 fix: export web elements from `types` path (#405) by kevin@basistheory.com
|
|
323
|
-
|
|
324
|
-
## [1.11.0] - 2025-03-20
|
|
325
|
-
|
|
326
|
-
### Features
|
|
327
|
-
|
|
328
|
-
- 5e3c058 2025-03-20 feat: re-export types from web elements (#404) by kevin@basistheory.com
|
|
329
|
-
|
|
330
|
-
## [1.10.0] - 2025-03-18
|
|
331
|
-
|
|
332
|
-
### Features
|
|
333
|
-
|
|
334
|
-
- be57c49 2025-03-18 feat: enable same origin api calls by default (#401) by kevin@basistheory.com
|
|
335
|
-
- 440fd31 2025-03-13 feat: add sri hash generation for static iframe assets (#398) by kevin@basistheory.com
|
|
336
|
-
|
|
337
|
-
### Bug Fixes
|
|
338
|
-
|
|
339
|
-
- be4129d 2025-03-18 fix: elements init options ordered incorrectly (#403) by kevin@basistheory.com
|
|
340
|
-
- 6c0271f 2025-03-18 fix: patch axios (#402) by kevin@basistheory.com
|
|
341
|
-
|
|
342
|
-
## [1.9.0] - 2025-03-13
|
|
343
|
-
|
|
344
|
-
### Features
|
|
345
|
-
|
|
346
|
-
- 4e13acd 2025-03-12 feat: generate versioned SRI for web-elements loader (#399) by kevin@basistheory.com
|
|
347
|
-
|
|
348
|
-
### Bug Fixes
|
|
349
|
-
|
|
350
|
-
- c148762 2025-03-13 fix: add dd rum url to csp (#400) by kevin@basistheory.com
|
|
351
|
-
|
|
352
|
-
### Chores
|
|
353
|
-
|
|
354
|
-
- dfc875d 2025-03-10 chore: add Elements PCI inventory script to PR check (#397) by brandon@basistheory.com
|
|
355
|
-
|
|
356
|
-
## [1.8.0] - 2025-03-07
|
|
357
|
-
|
|
358
|
-
### Features
|
|
359
|
-
|
|
360
|
-
- 0a14886 2025-03-07 feat(eng-8106): adding issuerCountry field into token intent model (#396) by 62716969+washluis-alencar@users.noreply.github.com
|
|
361
|
-
|
|
362
|
-
## [1.7.3] - 2025-03-07
|
|
363
|
-
|
|
364
|
-
### Bug Fixes
|
|
365
|
-
|
|
366
|
-
- ccf800e 2025-03-05 fix: revert createServiceRequestPayload by kevin@basistheory.com
|
|
367
|
-
|
|
368
|
-
## [1.7.2] - 2025-02-20
|
|
369
|
-
|
|
370
|
-
### Bug Fixes
|
|
371
|
-
|
|
372
|
-
- 992b619 2025-02-20 fix(react-elements): sync version upon release (#394) by kevin@basistheory.com
|
|
373
|
-
|
|
374
|
-
## [1.7.1] - 2025-02-20
|
|
375
|
-
|
|
376
|
-
### Bug Fixes
|
|
377
|
-
|
|
378
|
-
- ff9923a 2025-02-19 fix: update package version upon release (#393) by kevin@basistheory.com
|
|
379
|
-
|
|
380
|
-
## [1.7.0] - 2025-02-19
|
|
381
|
-
|
|
382
|
-
### Features
|
|
383
|
-
|
|
384
|
-
- b2dd527 2025-02-19 feat: improve logging when retrieving values from unmounted components (#391) by kevin@basistheory.com
|
|
385
|
-
- 4b95046 2025-02-18 feat: add more logs around element value resolution/timeouts (#390) by kevin@basistheory.com
|
|
386
|
-
- 73670c3 2025-02-13 feat: add react-elements (#386) by kevin@basistheory.com
|
|
387
|
-
|
|
388
|
-
## [1.6.0] - 2025-02-11
|
|
389
|
-
|
|
390
|
-
### Features
|
|
391
|
-
|
|
392
|
-
- 95bd0a5 2025-02-11 feat: adds sessions.create (#385) by kevin@basistheory.com
|
|
393
|
-
|
|
394
|
-
### Bug Fixes
|
|
395
|
-
|
|
396
|
-
- e692cd8 2025-02-11 fix: fix double log (#387) by lucas@basistheory.com
|
|
397
|
-
|
|
398
|
-
## [1.5.0] - 2025-02-06
|
|
399
|
-
|
|
400
|
-
### Features
|
|
401
|
-
|
|
402
|
-
- d9c1408 2025-02-04 feat: adds versioning (#379) by kevin@basistheory.com
|
|
403
|
-
|
|
404
|
-
### Bug Fixes
|
|
405
|
-
|
|
406
|
-
- 429a5c8 2025-02-04 test: update playwright fixtures (#382) by kevin@basistheory.com
|
|
407
|
-
- d609a6a 2025-02-04 fix: deploy versioned client/hosted (#381) by kevin@basistheory.com
|
|
408
|
-
|
|
409
|
-
## [1.4.0] - 2025-02-03
|
|
410
|
-
|
|
411
|
-
### Features
|
|
412
|
-
|
|
413
|
-
- 1a231c7 2025-01-31 feat: add debug object (#380) by lucas@basistheory.com
|
|
414
|
-
|
|
415
|
-
## [1.3.1] - 2025-01-29
|
|
416
|
-
|
|
417
|
-
### Bug Fixes
|
|
418
|
-
|
|
419
|
-
- 94b96cf 2025-01-29 fix: add status to detokenize response msg (#378) by lucas@basistheory.com
|
|
420
|
-
|
|
421
|
-
## [1.3.0] - 2025-01-28
|
|
422
|
-
|
|
423
|
-
### Features
|
|
424
|
-
|
|
425
|
-
- 77f1130 2025-01-28 feat: logging improvements (#372) by lucas@basistheory.com
|
|
426
|
-
|
|
427
|
-
## [1.2.5] - 2025-01-27
|
|
428
|
-
|
|
429
|
-
### Bug Fixes
|
|
430
|
-
|
|
431
|
-
- 32961d4 2025-01-27 fix: sync up with last release (#376) by kevin@basistheory.com
|
|
432
|
-
|
|
433
|
-
## [1.2.4] - 2025-01-27
|
|
434
|
-
|
|
435
|
-
### Features
|
|
436
|
-
|
|
437
|
-
- 9b65521 2025-01-22 feat: port logging from btjs (#363) by kevin@basistheory.com
|
|
438
|
-
- 1e1e956 2025-01-21 feat: deploy web-elements to cdn and npm (#355) by kevin@basistheory.com
|
|
439
|
-
- f93ff0a 2025-01-16 feat: bump js sdk (#357) by lucas@basistheory.com
|
|
440
|
-
- 53424ce 2025-01-14 feat: avoid logger conflicts (#356) by lucas@basistheory.com
|
|
441
|
-
- f6a7f10 2025-01-14 feat: add useSameOriginApi prop (#354) by lucas@basistheory.com
|
|
442
|
-
- 836e648 2025-01-13 feat: logging overhaul (#349) by lucas@basistheory.com
|
|
443
|
-
- 96ed3bd 2025-01-09 feat: surface metadata in onblur event (#348) by kevin@basistheory.com
|
|
444
|
-
- d6f63e7 2024-12-23 feat: toggle telemetry (#345) by kevin@basistheory.com
|
|
445
|
-
|
|
446
|
-
### Bug Fixes
|
|
447
|
-
|
|
448
|
-
- 57a6040 2025-01-23 fix: web-elements version generation (#367) by kevin@basistheory.com
|
|
449
|
-
- 31b4a10 2025-01-23 fix: adds gh token to prod workflow (#366) by kevin@basistheory.com
|
|
450
|
-
- b6276df 2025-01-23 fix: rename web-elements package (#365) by kevin@basistheory.com
|
|
451
|
-
- 7725c5f 2025-01-21 fix: deploy loader instead of client (#362) by kevin@basistheory.com
|
|
452
|
-
- 06808a4 2025-01-20 fix: add html extension for deployed hosted elements (#361) by lucas@basistheory.com
|
|
453
|
-
- c10758f 2025-01-17 fix: bump btjs to fix error interceptor (#359) by lucas@basistheory.com
|
|
454
|
-
- fc7cdca 2025-01-17 fix: add datadog http intake to csp (#358) by lucas@basistheory.com
|
|
455
|
-
- d97e813 2025-01-14 fix: prevent overriding log service value (#353) by lucas@basistheory.com
|
|
456
|
-
- 26e89dc 2025-01-13 fix: reverts versioning (#352) by kevin@basistheory.com
|
|
457
|
-
- 1a05850 2025-01-10 fix: version paths across elements client and hosted (#351) by kevin@basistheory.com
|
|
458
|
-
- 827e1b1 2025-01-10 ci: fix pathing (#350) by kevin@basistheory.com
|
|
459
|
-
- bcffe10 2025-01-09 fix: patch axios (#346) by kevin@basistheory.com
|
|
460
|
-
- 1a25ebe 2025-01-09 fix: patch express and body-parser (#347) by kevin@basistheory.com
|
|
461
|
-
- af85c64 2025-01-24 fix: update CHANGELOG.md (#371) by kevin@basistheory.com
|
|
462
|
-
- cc320fa 2025-01-24 fix: double the timeout for retrieving elements values (#370) by lucas@basistheory.com
|
|
463
|
-
- 3688baa 2025-01-24 fix: log additional details (#369) by kevin@basistheory.com
|
|
464
|
-
|
|
465
|
-
### Chores
|
|
466
|
-
|
|
467
|
-
- 955d7d4 2025-01-10 chore: deploy web-elements (#343) by kevin@basistheory.com
|
|
468
|
-
- Deploy web-elements package
|