@stripe/react-stripe-js
Advanced tools
Comparing version 1.14.1 to 1.14.2
@@ -376,3 +376,3 @@ import React from 'react'; | ||
name: 'react-stripe-js', | ||
version: "1.14.1" | ||
version: "1.14.2" | ||
}); | ||
@@ -382,3 +382,3 @@ | ||
name: 'react-stripe-js', | ||
version: "1.14.1", | ||
version: "1.14.2", | ||
url: 'https://stripe.com/docs/stripe-js/react' | ||
@@ -385,0 +385,0 @@ }); |
@@ -382,3 +382,3 @@ 'use strict'; | ||
name: 'react-stripe-js', | ||
version: "1.14.1" | ||
version: "1.14.2" | ||
}); | ||
@@ -388,3 +388,3 @@ | ||
name: 'react-stripe-js', | ||
version: "1.14.1", | ||
version: "1.14.2", | ||
url: 'https://stripe.com/docs/stripe-js/react' | ||
@@ -391,0 +391,0 @@ }); |
@@ -459,3 +459,3 @@ (function (global, factory) { | ||
name: 'react-stripe-js', | ||
version: "1.14.1" | ||
version: "1.14.2" | ||
}); | ||
@@ -465,3 +465,3 @@ | ||
name: 'react-stripe-js', | ||
version: "1.14.1", | ||
version: "1.14.2", | ||
url: 'https://stripe.com/docs/stripe-js/react' | ||
@@ -468,0 +468,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactStripe={},e.React)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;function n(){}function r(){}r.resetWarningCache=n;var o=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:n};return o.PropTypes=o,o}()}));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],c=!0,u=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},p=function(e){return null!==e&&"object"===u(e)},m=function(e,t,n){return p(e)?Object.keys(e).reduce((function(r,o){var a=!p(t)||!function e(t,n){if(!p(t)||!p(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o="[object Object]"===Object.prototype.toString.call(t);if(o!==("[object Object]"===Object.prototype.toString.call(n)))return!1;if(!o&&!r)return t===n;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(var u={},i=0;i<a.length;i+=1)u[a[i]]=!0;for(var s=0;s<c.length;s+=1)u[c[s]]=!0;var l=Object.keys(u);if(l.length!==a.length)return!1;var f=t,m=n;return l.every((function(t){return e(f[t],m[t])}))}(e[o],t[o]);return n.includes(o)?(a&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),r):a?c(c({},r||{}),{},i({},o,e[o])):r}),null):null},y=function(e){if(null===e||p(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;var t;throw new Error("Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},d=function(e){if(function(e){return p(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then(y)};var t=y(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},v=t.createContext(null);v.displayName="ElementsContext";var h=t.createContext(null);h.displayName="CartElementContext";var E=function(e){var n=e.stripe,r=e.options,o=e.children,a=t.useMemo((function(){return d(n)}),[n]),c=s(t.useState(null),2),u=c[0],i=c[1],l=s(t.useState(null),2),p=l[0],y=l[1],E=s(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(r):null}})),2),b=E[0],g=E[1];t.useEffect((function(){var e=!0,t=function(e){g((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==a.tag||b.stripe?"sync"!==a.tag||b.stripe||t(a.stripe):a.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[a,b,r]);var C=f(n);t.useEffect((function(){null!==C&&C!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[C,n]);var O=f(r);return t.useEffect((function(){if(b.elements){var e=m(r,O,["clientSecret","fonts"]);e&&b.elements.update(e)}}),[r,O,b.elements]),t.useEffect((function(){var e=b.stripe;e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"1.14.1"}),e.registerAppInfo({name:"react-stripe-js",version:"1.14.1",url:"https://stripe.com/docs/stripe-js/react"}))}),[b.stripe]),t.createElement(v.Provider,{value:b},t.createElement(h.Provider,{value:{cart:u,setCart:i,cartState:p,setCartState:y}},o))};E.propTypes={stripe:o.any,options:o.object};var b=function(e){return function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e}(t.useContext(v),e)},g=function(e){return function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e}(t.useContext(h),e)},C=function(e){return(0,e.children)(b("mounts <ElementsConsumer>"))};C.propTypes={children:o.func.isRequired};var O=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),function(){n.current&&n.current.apply(n,arguments)}},j=function(){},S=function(e,n){var r,a="".concat((r=e).charAt(0).toUpperCase()+r.slice(1),"Element"),c=n?function(e){b("mounts <".concat(a,">")),g("mounts <".concat(a,">"));var n=e.id,r=e.className;return t.createElement("div",{id:n,className:r})}:function(n){var r=n.id,o=n.className,c=n.options,u=void 0===c?{}:c,i=n.onBlur,s=void 0===i?j:i,l=n.onFocus,p=void 0===l?j:l,y=n.onReady,d=void 0===y?j:y,v=n.onChange,h=void 0===v?j:v,E=n.onEscape,C=void 0===E?j:E,S=n.onClick,k=void 0===S?j:S,w=n.onLoadError,P=void 0===w?j:w,A=n.onLoaderStart,x=void 0===A?j:A,R=n.onNetworksChange,T=void 0===R?j:R,B=n.onCheckout,_=void 0===B?j:B,I=n.onLineItemClick,N=void 0===I?j:I,M=b("mounts <".concat(a,">")).elements,L=t.useRef(null),q=t.useRef(null),D=g("mounts <".concat(a,">")),U=D.setCart,W=D.setCartState,F=O(d),Y=O(s),H=O(p),V=O(k),$=O(h),z=O(C),G=O(P),J=O(x),K=O(T),Q=O(_),X=O(N);t.useLayoutEffect((function(){if(null==L.current&&M&&null!=q.current){var t=M.create(e,u);"cart"===e&&U&&U(t),L.current=t,t.mount(q.current),t.on("ready",(function(n){"cart"===e?(W&&W(n),F(n)):F(t)})),t.on("change",(function(t){"cart"===e&&W&&W(t),$(t)})),t.on("blur",Y),t.on("focus",H),t.on("escape",z),t.on("loaderror",G),t.on("loaderstart",J),t.on("networkschange",K),t.on("click",V),t.on("checkout",(function(t){"cart"===e&&W&&W(t),Q(t)})),t.on("lineitemclick",X)}}));var Z=f(u);return t.useEffect((function(){if(L.current){var e=m(u,Z,["paymentRequest"]);e&&L.current.update(e)}}),[u,Z]),t.useLayoutEffect((function(){return function(){L.current&&(L.current.destroy(),L.current=null)}}),[]),t.createElement("div",{id:r,className:o,ref:q})};return c.propTypes={id:o.string,className:o.string,onChange:o.func,onBlur:o.func,onFocus:o.func,onReady:o.func,onEscape:o.func,onClick:o.func,onLoadError:o.func,onLoaderStart:o.func,onNetworksChange:o.func,onCheckout:o.func,onLineItemClick:o.func,options:o.object},c.displayName=a,c.__elementType=e,c},k="undefined"==typeof window,w=S("auBankAccount",k),P=S("card",k),A=S("cardNumber",k),x=S("cardExpiry",k),R=S("cardCvc",k),T=S("fpxBank",k),B=S("iban",k),_=S("idealBank",k),I=S("p24Bank",k),N=S("epsBank",k),M=S("payment",k),L=S("paymentRequestButton",k),q=S("linkAuthentication",k),D=S("address",k),U=S("shippingAddress",k),W=S("cart",k),F=S("paymentMethodMessaging",k),Y=S("affirmMessage",k),H=S("afterpayClearpayMessage",k);e.AddressElement=D,e.AffirmMessageElement=Y,e.AfterpayClearpayMessageElement=H,e.AuBankAccountElement=w,e.CardCvcElement=R,e.CardElement=P,e.CardExpiryElement=x,e.CardNumberElement=A,e.CartElement=W,e.Elements=E,e.ElementsConsumer=C,e.EpsBankElement=N,e.FpxBankElement=T,e.IbanElement=B,e.IdealBankElement=_,e.LinkAuthenticationElement=q,e.P24BankElement=I,e.PaymentElement=M,e.PaymentMethodMessagingElement=F,e.PaymentRequestButtonElement=L,e.ShippingAddressElement=U,e.useCartElement=function(){return g("calls useCartElement()").cart},e.useCartElementState=function(){return g("calls useCartElementState()").cartState},e.useElements=function(){return b("calls useElements()").elements},e.useStripe=function(){return b("calls useStripe()").stripe},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactStripe={},e.React)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;function n(){}function r(){}r.resetWarningCache=n;var o=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:n};return o.PropTypes=o,o}()}));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],c=!0,u=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},p=function(e){return null!==e&&"object"===u(e)},m=function(e,t,n){return p(e)?Object.keys(e).reduce((function(r,o){var a=!p(t)||!function e(t,n){if(!p(t)||!p(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o="[object Object]"===Object.prototype.toString.call(t);if(o!==("[object Object]"===Object.prototype.toString.call(n)))return!1;if(!o&&!r)return t===n;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(var u={},i=0;i<a.length;i+=1)u[a[i]]=!0;for(var s=0;s<c.length;s+=1)u[c[s]]=!0;var l=Object.keys(u);if(l.length!==a.length)return!1;var f=t,m=n;return l.every((function(t){return e(f[t],m[t])}))}(e[o],t[o]);return n.includes(o)?(a&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),r):a?c(c({},r||{}),{},i({},o,e[o])):r}),null):null},y=function(e){if(null===e||p(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;var t;throw new Error("Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},d=function(e){if(function(e){return p(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then(y)};var t=y(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},v=t.createContext(null);v.displayName="ElementsContext";var h=t.createContext(null);h.displayName="CartElementContext";var E=function(e){var n=e.stripe,r=e.options,o=e.children,a=t.useMemo((function(){return d(n)}),[n]),c=s(t.useState(null),2),u=c[0],i=c[1],l=s(t.useState(null),2),p=l[0],y=l[1],E=s(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(r):null}})),2),b=E[0],g=E[1];t.useEffect((function(){var e=!0,t=function(e){g((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==a.tag||b.stripe?"sync"!==a.tag||b.stripe||t(a.stripe):a.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[a,b,r]);var C=f(n);t.useEffect((function(){null!==C&&C!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[C,n]);var O=f(r);return t.useEffect((function(){if(b.elements){var e=m(r,O,["clientSecret","fonts"]);e&&b.elements.update(e)}}),[r,O,b.elements]),t.useEffect((function(){var e=b.stripe;e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"1.14.2"}),e.registerAppInfo({name:"react-stripe-js",version:"1.14.2",url:"https://stripe.com/docs/stripe-js/react"}))}),[b.stripe]),t.createElement(v.Provider,{value:b},t.createElement(h.Provider,{value:{cart:u,setCart:i,cartState:p,setCartState:y}},o))};E.propTypes={stripe:o.any,options:o.object};var b=function(e){return function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e}(t.useContext(v),e)},g=function(e){return function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e}(t.useContext(h),e)},C=function(e){return(0,e.children)(b("mounts <ElementsConsumer>"))};C.propTypes={children:o.func.isRequired};var O=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),function(){n.current&&n.current.apply(n,arguments)}},j=function(){},S=function(e,n){var r,a="".concat((r=e).charAt(0).toUpperCase()+r.slice(1),"Element"),c=n?function(e){b("mounts <".concat(a,">")),g("mounts <".concat(a,">"));var n=e.id,r=e.className;return t.createElement("div",{id:n,className:r})}:function(n){var r=n.id,o=n.className,c=n.options,u=void 0===c?{}:c,i=n.onBlur,s=void 0===i?j:i,l=n.onFocus,p=void 0===l?j:l,y=n.onReady,d=void 0===y?j:y,v=n.onChange,h=void 0===v?j:v,E=n.onEscape,C=void 0===E?j:E,S=n.onClick,k=void 0===S?j:S,w=n.onLoadError,P=void 0===w?j:w,A=n.onLoaderStart,x=void 0===A?j:A,R=n.onNetworksChange,T=void 0===R?j:R,B=n.onCheckout,_=void 0===B?j:B,I=n.onLineItemClick,N=void 0===I?j:I,M=b("mounts <".concat(a,">")).elements,L=t.useRef(null),q=t.useRef(null),D=g("mounts <".concat(a,">")),U=D.setCart,W=D.setCartState,F=O(d),Y=O(s),H=O(p),V=O(k),$=O(h),z=O(C),G=O(P),J=O(x),K=O(T),Q=O(_),X=O(N);t.useLayoutEffect((function(){if(null==L.current&&M&&null!=q.current){var t=M.create(e,u);"cart"===e&&U&&U(t),L.current=t,t.mount(q.current),t.on("ready",(function(n){"cart"===e?(W&&W(n),F(n)):F(t)})),t.on("change",(function(t){"cart"===e&&W&&W(t),$(t)})),t.on("blur",Y),t.on("focus",H),t.on("escape",z),t.on("loaderror",G),t.on("loaderstart",J),t.on("networkschange",K),t.on("click",V),t.on("checkout",(function(t){"cart"===e&&W&&W(t),Q(t)})),t.on("lineitemclick",X)}}));var Z=f(u);return t.useEffect((function(){if(L.current){var e=m(u,Z,["paymentRequest"]);e&&L.current.update(e)}}),[u,Z]),t.useLayoutEffect((function(){return function(){L.current&&(L.current.destroy(),L.current=null)}}),[]),t.createElement("div",{id:r,className:o,ref:q})};return c.propTypes={id:o.string,className:o.string,onChange:o.func,onBlur:o.func,onFocus:o.func,onReady:o.func,onEscape:o.func,onClick:o.func,onLoadError:o.func,onLoaderStart:o.func,onNetworksChange:o.func,onCheckout:o.func,onLineItemClick:o.func,options:o.object},c.displayName=a,c.__elementType=e,c},k="undefined"==typeof window,w=S("auBankAccount",k),P=S("card",k),A=S("cardNumber",k),x=S("cardExpiry",k),R=S("cardCvc",k),T=S("fpxBank",k),B=S("iban",k),_=S("idealBank",k),I=S("p24Bank",k),N=S("epsBank",k),M=S("payment",k),L=S("paymentRequestButton",k),q=S("linkAuthentication",k),D=S("address",k),U=S("shippingAddress",k),W=S("cart",k),F=S("paymentMethodMessaging",k),Y=S("affirmMessage",k),H=S("afterpayClearpayMessage",k);e.AddressElement=D,e.AffirmMessageElement=Y,e.AfterpayClearpayMessageElement=H,e.AuBankAccountElement=w,e.CardCvcElement=R,e.CardElement=P,e.CardExpiryElement=x,e.CardNumberElement=A,e.CartElement=W,e.Elements=E,e.ElementsConsumer=C,e.EpsBankElement=N,e.FpxBankElement=T,e.IbanElement=B,e.IdealBankElement=_,e.LinkAuthenticationElement=q,e.P24BankElement=I,e.PaymentElement=M,e.PaymentMethodMessagingElement=F,e.PaymentRequestButtonElement=L,e.ShippingAddressElement=U,e.useCartElement=function(){return g("calls useCartElement()").cart},e.useCartElementState=function(){return g("calls useCartElementState()").cartState},e.useElements=function(){return b("calls useElements()").elements},e.useStripe=function(){return b("calls useStripe()").stripe},Object.defineProperty(e,"__esModule",{value:!0})})); |
{ | ||
"name": "@stripe/react-stripe-js", | ||
"version": "1.14.1", | ||
"version": "1.14.2", | ||
"description": "React components for Stripe.js and Stripe Elements", | ||
@@ -109,3 +109,3 @@ "main": "dist/react-stripe.js", | ||
"peerDependencies": { | ||
"@stripe/stripe-js": "^1.42.0", | ||
"@stripe/stripe-js": "^1.42.1", | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
@@ -112,0 +112,0 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package