@stripe/stripe-react-native 0.59.0 → 0.59.2

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.
Files changed (96) hide show
  1. package/README.md +5 -2
  2. package/android/gradle.properties +1 -1
  3. package/android/src/main/AndroidManifest.xml +2 -2
  4. package/android/src/main/java/com/reactnativestripesdk/FakeOnrampSdkModule.kt +0 -5
  5. package/android/src/main/java/com/reactnativestripesdk/PaymentElementConfig.kt +17 -5
  6. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodMessagingElementConfig.kt +1 -1
  7. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetManager.kt +1 -8
  8. package/android/src/main/java/com/reactnativestripesdk/StripeFileProvider.kt +17 -0
  9. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +1 -1
  10. package/android/src/oldarch/java/com/reactnativestripesdk/NativeOnrampSdkModuleSpec.java +0 -4
  11. package/android/src/onramp/java/com/reactnativestripesdk/OnrampMappers.kt +103 -0
  12. package/android/src/onramp/java/com/reactnativestripesdk/OnrampSdkModule.kt +97 -187
  13. package/android/src/test/java/com/reactnativestripesdk/PaymentElementConfigTest.kt +52 -17
  14. package/android/src/test/java/com/reactnativestripesdk/PaymentMethodMessagingElementConfigTest.kt +3 -3
  15. package/android/src/test/java/com/reactnativestripesdk/mappers/OnrampMappersTest.kt +219 -0
  16. package/ios/PaymentMethodMessagingElementConfig.swift +3 -3
  17. package/ios/StripeOnrampSdk.mm +0 -6
  18. package/ios/StripeSdkImpl+PaymentSheet.swift +20 -7
  19. package/ios/StripeSdkImpl.swift +2 -36
  20. package/jest/setup.js +0 -1
  21. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  22. package/lib/commonjs/components/AddressSheet.js +1 -1
  23. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  24. package/lib/commonjs/components/CardField.js +1 -1
  25. package/lib/commonjs/components/CardForm.js +1 -1
  26. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  27. package/lib/commonjs/components/StripeContainer.js +1 -1
  28. package/lib/commonjs/connect/Components.js +1 -1
  29. package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
  30. package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
  31. package/lib/commonjs/connect/ModalCloseButton.js +1 -1
  32. package/lib/commonjs/connect/NavigationBar.js +1 -1
  33. package/lib/commonjs/helpers.js +1 -1
  34. package/lib/commonjs/hooks/useOnramp.js +1 -1
  35. package/lib/commonjs/hooks/useOnramp.js.map +1 -1
  36. package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
  37. package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
  38. package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
  39. package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
  40. package/lib/commonjs/specs/NativeCardField.js +1 -1
  41. package/lib/commonjs/specs/NativeCardForm.js +1 -1
  42. package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
  43. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
  44. package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
  45. package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
  46. package/lib/commonjs/specs/NativeOnrampSdkModule.js.map +1 -1
  47. package/lib/commonjs/specs/NativePaymentMethodMessagingElement.js +1 -1
  48. package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
  49. package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
  50. package/lib/commonjs/types/PaymentSheet.js +1 -1
  51. package/lib/commonjs/types/PaymentSheet.js.map +1 -1
  52. package/lib/module/components/AddToWalletButton.js +1 -1
  53. package/lib/module/components/AddressSheet.js +1 -1
  54. package/lib/module/components/AuBECSDebitForm.js +1 -1
  55. package/lib/module/components/CardField.js +1 -1
  56. package/lib/module/components/CardForm.js +1 -1
  57. package/lib/module/components/PlatformPayButton.js +1 -1
  58. package/lib/module/components/StripeContainer.js +1 -1
  59. package/lib/module/connect/Components.js +1 -1
  60. package/lib/module/connect/ConnectComponentsProvider.js +1 -1
  61. package/lib/module/connect/EmbeddedComponent.js +1 -1
  62. package/lib/module/connect/ModalCloseButton.js +1 -1
  63. package/lib/module/connect/NavigationBar.js +1 -1
  64. package/lib/module/helpers.js +1 -1
  65. package/lib/module/hooks/useOnramp.js +1 -1
  66. package/lib/module/hooks/useOnramp.js.map +1 -1
  67. package/lib/module/specs/NativeAddToWalletButton.js +1 -1
  68. package/lib/module/specs/NativeAddressSheet.js +1 -1
  69. package/lib/module/specs/NativeApplePayButton.js +1 -1
  70. package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
  71. package/lib/module/specs/NativeCardField.js +1 -1
  72. package/lib/module/specs/NativeCardForm.js +1 -1
  73. package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
  74. package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
  75. package/lib/module/specs/NativeGooglePayButton.js +1 -1
  76. package/lib/module/specs/NativeNavigationBar.js +1 -1
  77. package/lib/module/specs/NativeOnrampSdkModule.js.map +1 -1
  78. package/lib/module/specs/NativePaymentMethodMessagingElement.js +1 -1
  79. package/lib/module/specs/NativeStripeContainer.js +1 -1
  80. package/lib/module/types/EmbeddedPaymentElement.js +1 -1
  81. package/lib/module/types/PaymentSheet.js +1 -1
  82. package/lib/module/types/PaymentSheet.js.map +1 -1
  83. package/lib/typescript/src/hooks/useOnramp.d.ts +2 -8
  84. package/lib/typescript/src/hooks/useOnramp.d.ts.map +1 -1
  85. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts +0 -1
  86. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts.map +1 -1
  87. package/lib/typescript/src/types/Onramp.d.ts +0 -12
  88. package/lib/typescript/src/types/Onramp.d.ts.map +1 -1
  89. package/lib/typescript/src/types/PaymentSheet.d.ts +22 -0
  90. package/lib/typescript/src/types/PaymentSheet.d.ts.map +1 -1
  91. package/package.json +1 -1
  92. package/src/hooks/useOnramp.tsx +2 -14
  93. package/src/specs/NativeOnrampSdkModule.ts +0 -1
  94. package/src/types/Onramp.ts +0 -15
  95. package/src/types/PaymentSheet.ts +23 -0
  96. package/stripe-react-native.podspec +1 -1
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ConnectAccountOnboarding=ConnectAccountOnboarding;exports.ConnectPaymentDetails=ConnectPaymentDetails;exports.ConnectPayments=ConnectPayments;exports.ConnectPayouts=ConnectPayouts;Object.defineProperty(exports,"NavigationBar",{enumerable:true,get:function get(){return _NavigationBar.NavigationBar;}});var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _EmbeddedComponent=require("./EmbeddedComponent");var _NavigationBar=require("./NavigationBar");var _NativeConnectAccountOnboardingView=_interopRequireDefault(require("../specs/NativeConnectAccountOnboardingView"));var _ConnectComponentsProvider=require("./ConnectComponentsProvider");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/wooj/stripe/stripe-react-native/src/connect/Components.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}function ConnectAccountOnboarding(_ref){var title=_ref.title,onExit=_ref.onExit,onStepChange=_ref.onStepChange,recipientTermsOfServiceUrl=_ref.recipientTermsOfServiceUrl,fullTermsOfServiceUrl=_ref.fullTermsOfServiceUrl,privacyPolicyUrl=_ref.privacyPolicyUrl,collectionOptions=_ref.collectionOptions,onLoaderStart=_ref.onLoaderStart,onLoadError=_ref.onLoadError,onPageDidLoad=_ref.onPageDidLoad;var _useState=(0,_react.useState)(true),_useState2=(0,_slicedToArray2.default)(_useState,2),visible=_useState2[0],setVisible=_useState2[1];var _useState3=(0,_react.useState)(true),_useState4=(0,_slicedToArray2.default)(_useState3,2),loading=_useState4[0],setLoading=_useState4[1];var _useConnectComponents=(0,_ConnectComponentsProvider.useConnectComponents)(),appearance=_useConnectComponents.appearance;var backgroundColor=(0,_react.useMemo)(function(){var _appearance$variables;return(appearance==null||(_appearance$variables=appearance.variables)==null?void 0:_appearance$variables.colorBackground)||'#FFFFFF';},[appearance]);var loadingIndicatorColor=(0,_react.useMemo)(function(){var _appearance$variables2;return(appearance==null||(_appearance$variables2=appearance.variables)==null?void 0:_appearance$variables2.colorSecondaryText)||'#888888';},[appearance]);var componentProps=(0,_react.useMemo)(function(){return{setFullTermsOfServiceUrl:fullTermsOfServiceUrl,setRecipientTermsOfServiceUrl:recipientTermsOfServiceUrl,setPrivacyPolicyUrl:privacyPolicyUrl,setCollectionOptions:collectionOptions};},[fullTermsOfServiceUrl,recipientTermsOfServiceUrl,privacyPolicyUrl,collectionOptions]);var onExitCallback=(0,_react.useCallback)(function(){setVisible(false);setTimeout(onExit);},[onExit]);var callbacks=(0,_react.useMemo)(function(){return{onExit:onExitCallback,onStepChange:onStepChange,onCloseWebView:onExitCallback};},[onExitCallback,onStepChange]);var onLoaderStartCallback=(0,_react.useCallback)(function(event){setLoading(false);if(onLoaderStart){onLoaderStart(event);}},[onLoaderStart]);var _useWindowDimensions=(0,_reactNative.useWindowDimensions)(),width=_useWindowDimensions.width,height=_useWindowDimensions.height;var containerStyle=(0,_react.useMemo)(function(){return{width:width,height:height,position:'absolute'};},[width,height]);if(_reactNative.Platform.OS==='ios'){return(0,_jsxRuntime.jsxs)(_NativeConnectAccountOnboardingView.default,{visible:visible,title:title,backgroundColor:backgroundColor,onExitAction:onExitCallback,style:containerStyle,children:[loading?(0,_jsxRuntime.jsx)(_reactNative.ActivityIndicator,{size:"large",color:loadingIndicatorColor,style:styles.iosActivityIndicator}):null,(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"account-onboarding",componentProps:componentProps,onLoaderStart:onLoaderStartCallback,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,callbacks:callbacks,style:styles.flex1})]});}return(0,_jsxRuntime.jsx)(_reactNative.Modal,{visible:visible,animationType:"slide",presentationStyle:"fullScreen",children:(0,_jsxRuntime.jsxs)(_reactNative.SafeAreaView,{style:styles.flex1,children:[(0,_jsxRuntime.jsx)(_reactNative.View,{style:[_reactNative.Platform.OS==='android'&&{paddingTop:_reactNative.StatusBar.currentHeight||0}],children:(0,_jsxRuntime.jsx)(_NavigationBar.NavigationBar,{title:title,onCloseButtonPress:onExitCallback,style:styles.navBar})}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.onboardingWrapper,children:[loading?(0,_jsxRuntime.jsx)(_reactNative.ActivityIndicator,{size:"large",color:loadingIndicatorColor,style:styles.activityIndicator}):null,(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"account-onboarding",componentProps:componentProps,onLoaderStart:onLoaderStartCallback,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,callbacks:callbacks,style:[styles.flex1,{backgroundColor:backgroundColor}]})]})]})});}function ConnectPayments(_ref2){var defaultFilters=_ref2.defaultFilters,onLoaderStart=_ref2.onLoaderStart,onLoadError=_ref2.onLoadError,onPageDidLoad=_ref2.onPageDidLoad,style=_ref2.style;var componentProps=(0,_react.useMemo)(function(){return{setDefaultFilters:defaultFilters};},[defaultFilters]);return(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"payments",onLoaderStart:onLoaderStart,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,componentProps:componentProps,style:style});}function ConnectPayouts(_ref3){var onLoaderStart=_ref3.onLoaderStart,onLoadError=_ref3.onLoadError,onPageDidLoad=_ref3.onPageDidLoad,style=_ref3.style;return(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"payouts",onLoaderStart:onLoaderStart,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,style:style});}function ConnectPaymentDetails(_ref4){var payment=_ref4.payment,onClose=_ref4.onClose,onLoaderStart=_ref4.onLoaderStart,onLoadError=_ref4.onLoadError,onPageDidLoad=_ref4.onPageDidLoad,style=_ref4.style;var componentProps=(0,_react.useMemo)(function(){return{setPayment:payment};},[payment]);var callbacks=(0,_react.useMemo)(function(){return{onClose:onClose};},[onClose]);return(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"payment-details",componentProps:componentProps,callbacks:callbacks,onLoaderStart:onLoaderStart,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,style:style});}var styles=_reactNative.StyleSheet.create({navBar:{height:56},flex1:{flex:1},activityIndicator:{zIndex:1,position:'absolute',left:0,right:0,top:48},iosActivityIndicator:{zIndex:1,position:'absolute',left:0,right:0,top:160},onboardingWrapper:{position:'relative',flex:1}});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ConnectAccountOnboarding=ConnectAccountOnboarding;exports.ConnectPaymentDetails=ConnectPaymentDetails;exports.ConnectPayments=ConnectPayments;exports.ConnectPayouts=ConnectPayouts;Object.defineProperty(exports,"NavigationBar",{enumerable:true,get:function get(){return _NavigationBar.NavigationBar;}});var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _EmbeddedComponent=require("./EmbeddedComponent");var _NavigationBar=require("./NavigationBar");var _NativeConnectAccountOnboardingView=_interopRequireDefault(require("../specs/NativeConnectAccountOnboardingView"));var _ConnectComponentsProvider=require("./ConnectComponentsProvider");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/mats/stripe/stripe-react-native/src/connect/Components.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}function ConnectAccountOnboarding(_ref){var title=_ref.title,onExit=_ref.onExit,onStepChange=_ref.onStepChange,recipientTermsOfServiceUrl=_ref.recipientTermsOfServiceUrl,fullTermsOfServiceUrl=_ref.fullTermsOfServiceUrl,privacyPolicyUrl=_ref.privacyPolicyUrl,collectionOptions=_ref.collectionOptions,onLoaderStart=_ref.onLoaderStart,onLoadError=_ref.onLoadError,onPageDidLoad=_ref.onPageDidLoad;var _useState=(0,_react.useState)(true),_useState2=(0,_slicedToArray2.default)(_useState,2),visible=_useState2[0],setVisible=_useState2[1];var _useState3=(0,_react.useState)(true),_useState4=(0,_slicedToArray2.default)(_useState3,2),loading=_useState4[0],setLoading=_useState4[1];var _useConnectComponents=(0,_ConnectComponentsProvider.useConnectComponents)(),appearance=_useConnectComponents.appearance;var backgroundColor=(0,_react.useMemo)(function(){var _appearance$variables;return(appearance==null||(_appearance$variables=appearance.variables)==null?void 0:_appearance$variables.colorBackground)||'#FFFFFF';},[appearance]);var loadingIndicatorColor=(0,_react.useMemo)(function(){var _appearance$variables2;return(appearance==null||(_appearance$variables2=appearance.variables)==null?void 0:_appearance$variables2.colorSecondaryText)||'#888888';},[appearance]);var componentProps=(0,_react.useMemo)(function(){return{setFullTermsOfServiceUrl:fullTermsOfServiceUrl,setRecipientTermsOfServiceUrl:recipientTermsOfServiceUrl,setPrivacyPolicyUrl:privacyPolicyUrl,setCollectionOptions:collectionOptions};},[fullTermsOfServiceUrl,recipientTermsOfServiceUrl,privacyPolicyUrl,collectionOptions]);var onExitCallback=(0,_react.useCallback)(function(){setVisible(false);setTimeout(onExit);},[onExit]);var callbacks=(0,_react.useMemo)(function(){return{onExit:onExitCallback,onStepChange:onStepChange,onCloseWebView:onExitCallback};},[onExitCallback,onStepChange]);var onLoaderStartCallback=(0,_react.useCallback)(function(event){setLoading(false);if(onLoaderStart){onLoaderStart(event);}},[onLoaderStart]);var _useWindowDimensions=(0,_reactNative.useWindowDimensions)(),width=_useWindowDimensions.width,height=_useWindowDimensions.height;var containerStyle=(0,_react.useMemo)(function(){return{width:width,height:height,position:'absolute'};},[width,height]);if(_reactNative.Platform.OS==='ios'){return(0,_jsxRuntime.jsxs)(_NativeConnectAccountOnboardingView.default,{visible:visible,title:title,backgroundColor:backgroundColor,onExitAction:onExitCallback,style:containerStyle,children:[loading?(0,_jsxRuntime.jsx)(_reactNative.ActivityIndicator,{size:"large",color:loadingIndicatorColor,style:styles.iosActivityIndicator}):null,(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"account-onboarding",componentProps:componentProps,onLoaderStart:onLoaderStartCallback,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,callbacks:callbacks,style:styles.flex1})]});}return(0,_jsxRuntime.jsx)(_reactNative.Modal,{visible:visible,animationType:"slide",presentationStyle:"fullScreen",children:(0,_jsxRuntime.jsxs)(_reactNative.SafeAreaView,{style:styles.flex1,children:[(0,_jsxRuntime.jsx)(_reactNative.View,{style:[_reactNative.Platform.OS==='android'&&{paddingTop:_reactNative.StatusBar.currentHeight||0}],children:(0,_jsxRuntime.jsx)(_NavigationBar.NavigationBar,{title:title,onCloseButtonPress:onExitCallback,style:styles.navBar})}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.onboardingWrapper,children:[loading?(0,_jsxRuntime.jsx)(_reactNative.ActivityIndicator,{size:"large",color:loadingIndicatorColor,style:styles.activityIndicator}):null,(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"account-onboarding",componentProps:componentProps,onLoaderStart:onLoaderStartCallback,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,callbacks:callbacks,style:[styles.flex1,{backgroundColor:backgroundColor}]})]})]})});}function ConnectPayments(_ref2){var defaultFilters=_ref2.defaultFilters,onLoaderStart=_ref2.onLoaderStart,onLoadError=_ref2.onLoadError,onPageDidLoad=_ref2.onPageDidLoad,style=_ref2.style;var componentProps=(0,_react.useMemo)(function(){return{setDefaultFilters:defaultFilters};},[defaultFilters]);return(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"payments",onLoaderStart:onLoaderStart,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,componentProps:componentProps,style:style});}function ConnectPayouts(_ref3){var onLoaderStart=_ref3.onLoaderStart,onLoadError=_ref3.onLoadError,onPageDidLoad=_ref3.onPageDidLoad,style=_ref3.style;return(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"payouts",onLoaderStart:onLoaderStart,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,style:style});}function ConnectPaymentDetails(_ref4){var payment=_ref4.payment,onClose=_ref4.onClose,onLoaderStart=_ref4.onLoaderStart,onLoadError=_ref4.onLoadError,onPageDidLoad=_ref4.onPageDidLoad,style=_ref4.style;var componentProps=(0,_react.useMemo)(function(){return{setPayment:payment};},[payment]);var callbacks=(0,_react.useMemo)(function(){return{onClose:onClose};},[onClose]);return(0,_jsxRuntime.jsx)(_EmbeddedComponent.EmbeddedComponent,{component:"payment-details",componentProps:componentProps,callbacks:callbacks,onLoaderStart:onLoaderStart,onLoadError:onLoadError,onPageDidLoad:onPageDidLoad,style:style});}var styles=_reactNative.StyleSheet.create({navBar:{height:56},flex1:{flex:1},activityIndicator:{zIndex:1,position:'absolute',left:0,right:0,top:48},iosActivityIndicator:{zIndex:1,position:'absolute',left:0,right:0,top:160},onboardingWrapper:{position:'relative',flex:1}});
2
2
  //# sourceMappingURL=Components.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useConnectComponents=exports.loadConnectAndInitialize=exports.ConnectComponentsProvider=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _react=_interopRequireWildcard(require("react"));var _AnalyticsClient=require("./analytics/AnalyticsClient");var _functions=require("../functions");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/wooj/stripe/stripe-react-native/src/connect/ConnectComponentsProvider.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var ConnectInstance=function(){function ConnectInstance(initParams){(0,_classCallCheck2.default)(this,ConnectInstance);this.initParams=initParams;}return(0,_createClass2.default)(ConnectInstance,[{key:"update",value:function update(options){var _this$onUpdate;(_this$onUpdate=this.onUpdate)==null||_this$onUpdate.call(this,options);}}]);}();var loadConnectAndInitialize=exports.loadConnectAndInitialize=function loadConnectAndInitialize(initParams){return new ConnectInstance(initParams);};var ConnectComponentsContext=_react.default.createContext(null);ConnectComponentsContext.displayName='ConnectComponents';var ConnectComponentsProvider=exports.ConnectComponentsProvider=function ConnectComponentsProvider(_ref){var children=_ref.children,connectInstance=_ref.connectInstance;if(!(connectInstance instanceof ConnectInstance)){throw new Error('connectInstance must be an instance of ConnectInstance created via loadConnectAndInitialize');}var _useState=(0,_react.useState)(connectInstance.initParams.appearance),_useState2=(0,_slicedToArray2.default)(_useState,2),appearance=_useState2[0],setAppearance=_useState2[1];var _useState3=(0,_react.useState)(connectInstance.initParams.locale),_useState4=(0,_slicedToArray2.default)(_useState3,2),locale=_useState4[0],setLocale=_useState4[1];var analyticsClient=(0,_react.useMemo)(function(){return new _AnalyticsClient.AnalyticsClient(_functions.Constants.SYSTEM_INFO);},[]);if(!connectInstance.onUpdate){connectInstance.onUpdate=function(options){if(options.appearance){setAppearance(options.appearance);}if(options.locale){setLocale(options.locale);}};}var value=(0,_react.useMemo)(function(){return{connectInstance:connectInstance,locale:locale,appearance:appearance,analyticsClient:analyticsClient};},[connectInstance,locale,appearance,analyticsClient]);return(0,_jsxRuntime.jsx)(ConnectComponentsContext.Provider,{value:value,children:children});};var useConnectComponents=exports.useConnectComponents=function useConnectComponents(){var context=_react.default.useContext(ConnectComponentsContext);if(!context){throw new Error(`Could not find a ConnectComponentsContext; You need to wrap your components in an <ConnectComponentsProvider> provider.`);}return context;};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useConnectComponents=exports.loadConnectAndInitialize=exports.ConnectComponentsProvider=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _react=_interopRequireWildcard(require("react"));var _AnalyticsClient=require("./analytics/AnalyticsClient");var _functions=require("../functions");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/mats/stripe/stripe-react-native/src/connect/ConnectComponentsProvider.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var ConnectInstance=function(){function ConnectInstance(initParams){(0,_classCallCheck2.default)(this,ConnectInstance);this.initParams=initParams;}return(0,_createClass2.default)(ConnectInstance,[{key:"update",value:function update(options){var _this$onUpdate;(_this$onUpdate=this.onUpdate)==null||_this$onUpdate.call(this,options);}}]);}();var loadConnectAndInitialize=exports.loadConnectAndInitialize=function loadConnectAndInitialize(initParams){return new ConnectInstance(initParams);};var ConnectComponentsContext=_react.default.createContext(null);ConnectComponentsContext.displayName='ConnectComponents';var ConnectComponentsProvider=exports.ConnectComponentsProvider=function ConnectComponentsProvider(_ref){var children=_ref.children,connectInstance=_ref.connectInstance;if(!(connectInstance instanceof ConnectInstance)){throw new Error('connectInstance must be an instance of ConnectInstance created via loadConnectAndInitialize');}var _useState=(0,_react.useState)(connectInstance.initParams.appearance),_useState2=(0,_slicedToArray2.default)(_useState,2),appearance=_useState2[0],setAppearance=_useState2[1];var _useState3=(0,_react.useState)(connectInstance.initParams.locale),_useState4=(0,_slicedToArray2.default)(_useState3,2),locale=_useState4[0],setLocale=_useState4[1];var analyticsClient=(0,_react.useMemo)(function(){return new _AnalyticsClient.AnalyticsClient(_functions.Constants.SYSTEM_INFO);},[]);if(!connectInstance.onUpdate){connectInstance.onUpdate=function(options){if(options.appearance){setAppearance(options.appearance);}if(options.locale){setLocale(options.locale);}};}var value=(0,_react.useMemo)(function(){return{connectInstance:connectInstance,locale:locale,appearance:appearance,analyticsClient:analyticsClient};},[connectInstance,locale,appearance,analyticsClient]);return(0,_jsxRuntime.jsx)(ConnectComponentsContext.Provider,{value:value,children:children});};var useConnectComponents=exports.useConnectComponents=function useConnectComponents(){var context=_react.default.useContext(ConnectComponentsContext);if(!context){throw new Error(`Could not find a ConnectComponentsContext; You need to wrap your components in an <ConnectComponentsProvider> provider.`);}return context;};
2
2
  //# sourceMappingURL=ConnectComponentsProvider.js.map
@@ -1,4 +1,4 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.EmbeddedComponent=EmbeddedComponent;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _package=_interopRequireDefault(require("../../../package.json"));var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _events=require("../events");var _ConnectComponentsProvider=require("./ConnectComponentsProvider");var _ComponentAnalyticsClient=require("./analytics/ComponentAnalyticsClient");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/wooj/stripe/stripe-react-native/src/connect/EmbeddedComponent.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var DEVELOPMENT_MODE=false;var DEVELOPMENT_URL=_reactNative.Platform.OS==='android'?'http://10.0.2.2:3001':'http://localhost:3001';var PRODUCTION_URL='https://connect-js.stripe.com';var BASE_URL=DEVELOPMENT_MODE?DEVELOPMENT_URL:PRODUCTION_URL;var sdkVersion=_package.default.version;var POLLING_INTERVAL_MS=500;var URL_DEDUPLICATION_TIMEOUT_MS=1000;var DEEP_LINK_GRACE_PERIOD_MS=500;if(!/^\d+\.\d+\.\d+$/.test(sdkVersion)){throw new Error(`Invalid SDK version: ${sdkVersion}. Must be in format X.Y.Z`);}var platformPrefix=_reactNative.Platform.select({ios:'iPhone',android:'Android',default:'Mobile'});var userAgent=[platformPrefix,`Stripe ReactNative SDK ${_reactNative.Platform.OS}/${_reactNative.Platform.Version}`,`stripe-react_native/${sdkVersion}`].join(' - ');var ALLOWED_STRIPE_HOSTS=['connect-js.stripe.com','connect.stripe.com','verify.stripe.com'].concat((0,_toConsumableArray2.default)(DEVELOPMENT_MODE?['10.0.2.2:3001','localhost:3001']:[]));function EmbeddedComponent(props){var _appearance$variables;var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),dynamicWebview=_useState2[0],setDynamicWebview=_useState2[1];var pendingAuthWebViewPromises=(0,_react.useRef)(new Map());var pendingFinancialConnectionsPromise=(0,_react.useRef)(null);var recentlyHandledUrls=(0,_react.useRef)(new Set());var loadWebViewComponent=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){if(dynamicWebview)return;setDynamicWebview({WebView:null});try{var mod=yield import('react-native-webview');setDynamicWebview({WebView:mod.WebView});}catch(err){console.error('Failed to import react-native-webview:',err);}}),[dynamicWebview]);(0,_react.useEffect)(function(){loadWebViewComponent();},[loadWebViewComponent]);var appState=(0,_react.useRef)(_reactNative.AppState.currentState);(0,_react.useEffect)(function(){if(_reactNative.Platform.OS!=='android')return;var pollInterval=setInterval((0,_asyncToGenerator2.default)(function*(){if(pendingAuthWebViewPromises.current.size===0){return;}try{var pendingUrls=yield _NativeStripeSdkModule.default.pollAndClearPendingStripeConnectUrls();if(pendingUrls&&pendingUrls.length>0){pendingUrls.forEach(function(url){if(url.startsWith('stripe-connect://')){if(recentlyHandledUrls.current.has(url)){return;}recentlyHandledUrls.current.add(url);setTimeout(function(){recentlyHandledUrls.current.delete(url);},URL_DEDUPLICATION_TIMEOUT_MS);var firstEntry=pendingAuthWebViewPromises.current.entries().next().value;if(firstEntry){var _firstEntry=(0,_slicedToArray2.default)(firstEntry,2),id=_firstEntry[0],promiseData=_firstEntry[1];if(promiseData.timeoutId){clearTimeout(promiseData.timeoutId);}pendingAuthWebViewPromises.current.delete(id);promiseData.callback(id,url);_NativeStripeSdkModule.default.authWebViewDeepLinkHandled(id).catch(function(){});}}});}}catch(_error){}}),POLLING_INTERVAL_MS);return function(){clearInterval(pollInterval);};},[]);(0,_react.useEffect)(function(){var subscription=_reactNative.AppState.addEventListener('change',function(nextAppState){if(appState.current.match(/inactive|background/)&&nextAppState==='active'){if(pendingAuthWebViewPromises.current.size>0){pendingAuthWebViewPromises.current.forEach(function(promiseData,id){if(!promiseData.timeoutId){var timeoutId=setTimeout(function(){var stillPending=pendingAuthWebViewPromises.current.get(id);if(stillPending){pendingAuthWebViewPromises.current.delete(id);stillPending.callback(id,null);}},DEEP_LINK_GRACE_PERIOD_MS);promiseData.timeoutId=timeoutId;}});}}appState.current=nextAppState;});return function(){var _pendingFinancialConn;var promises=pendingAuthWebViewPromises.current;promises.forEach(function(promiseData,_id){if(promiseData.timeoutId){clearTimeout(promiseData.timeoutId);}});promises.clear();(_pendingFinancialConn=pendingFinancialConnectionsPromise.current)==null||_pendingFinancialConn.cleanup();subscription.remove();};},[]);var _useConnectComponents=(0,_ConnectComponentsProvider.useConnectComponents)(),connectInstance=_useConnectComponents.connectInstance,appearance=_useConnectComponents.appearance,locale=_useConnectComponents.locale,analyticsClient=_useConnectComponents.analyticsClient;var _ref3=connectInstance.initParams,fonts=_ref3.fonts,publishableKey=_ref3.publishableKey,fetchClientSecret=_ref3.fetchClientSecret,overrides=_ref3.overrides;var component=props.component,componentProps=props.componentProps,onLoadError=props.onLoadError,onLoaderStart=props.onLoaderStart,onPageDidLoad=props.onPageDidLoad,callbacks=props.callbacks,style=props.style;var componentAnalytics=(0,_react.useMemo)(function(){return new _ComponentAnalyticsClient.ComponentAnalyticsClient(analyticsClient,{publishableKey:publishableKey,platformId:overrides==null?void 0:overrides.platformId,merchantId:overrides==null?void 0:overrides.merchantId,livemode:typeof(overrides==null?void 0:overrides.livemode)==='boolean'?overrides.livemode:publishableKey==null?void 0:publishableKey.startsWith('pk_live_'),component:component});},[analyticsClient,publishableKey,overrides,component]);var hashParams={component:component,publicKey:publishableKey,merchantIdOverride:overrides==null?void 0:overrides.merchantId,platformIdOverride:overrides==null?void 0:overrides.platformId,apiKeyOverride:overrides==null?void 0:overrides.apiKey,livemodeOverride:overrides==null?void 0:overrides.livemode};var hash=Object.entries(hashParams).filter(function(_ref4){var _ref5=(0,_slicedToArray2.default)(_ref4,2),_=_ref5[0],value=_ref5[1];return value!=null;}).map(function(_ref6){var _ref7=(0,_slicedToArray2.default)(_ref6,2),key=_ref7[0],value=_ref7[1];return`${encodeURIComponent(key)}=${encodeURIComponent(value)}`;}).join('&');var connectURL=`${BASE_URL}/v1.0/react_native_webview.html#${hash}`;var source=(0,_react.useMemo)(function(){return{uri:connectURL};},[connectURL]);var ref=(0,_react.useRef)(null);var hasTriedSourceReload=(0,_react.useRef)(false);var _useState3=(0,_react.useState)(appearance),_useState4=(0,_slicedToArray2.default)(_useState3,2),prevAppearance=_useState4[0],setPrevAppearance=_useState4[1];var _useState5=(0,_react.useState)(locale),_useState6=(0,_slicedToArray2.default)(_useState5,2),prevLocale=_useState6[0],setPrevLocale=_useState6[1];if(prevAppearance!==appearance||prevLocale!==locale){var _ref$current;setPrevAppearance(appearance);setPrevLocale(locale);var patchedAppearance=withDefaultFontFamily(appearance);(_ref$current=ref.current)==null||_ref$current.injectJavaScript(`
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.EmbeddedComponent=EmbeddedComponent;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _package=_interopRequireDefault(require("../../../package.json"));var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _events=require("../events");var _ConnectComponentsProvider=require("./ConnectComponentsProvider");var _ComponentAnalyticsClient=require("./analytics/ComponentAnalyticsClient");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/mats/stripe/stripe-react-native/src/connect/EmbeddedComponent.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var DEVELOPMENT_MODE=false;var DEVELOPMENT_URL=_reactNative.Platform.OS==='android'?'http://10.0.2.2:3001':'http://localhost:3001';var PRODUCTION_URL='https://connect-js.stripe.com';var BASE_URL=DEVELOPMENT_MODE?DEVELOPMENT_URL:PRODUCTION_URL;var sdkVersion=_package.default.version;var POLLING_INTERVAL_MS=500;var URL_DEDUPLICATION_TIMEOUT_MS=1000;var DEEP_LINK_GRACE_PERIOD_MS=500;if(!/^\d+\.\d+\.\d+$/.test(sdkVersion)){throw new Error(`Invalid SDK version: ${sdkVersion}. Must be in format X.Y.Z`);}var platformPrefix=_reactNative.Platform.select({ios:'iPhone',android:'Android',default:'Mobile'});var userAgent=[platformPrefix,`Stripe ReactNative SDK ${_reactNative.Platform.OS}/${_reactNative.Platform.Version}`,`stripe-react_native/${sdkVersion}`].join(' - ');var ALLOWED_STRIPE_HOSTS=['connect-js.stripe.com','connect.stripe.com','verify.stripe.com'].concat((0,_toConsumableArray2.default)(DEVELOPMENT_MODE?['10.0.2.2:3001','localhost:3001']:[]));function EmbeddedComponent(props){var _appearance$variables;var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),dynamicWebview=_useState2[0],setDynamicWebview=_useState2[1];var pendingAuthWebViewPromises=(0,_react.useRef)(new Map());var pendingFinancialConnectionsPromise=(0,_react.useRef)(null);var recentlyHandledUrls=(0,_react.useRef)(new Set());var loadWebViewComponent=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){if(dynamicWebview)return;setDynamicWebview({WebView:null});try{var mod=yield import('react-native-webview');setDynamicWebview({WebView:mod.WebView});}catch(err){console.error('Failed to import react-native-webview:',err);}}),[dynamicWebview]);(0,_react.useEffect)(function(){loadWebViewComponent();},[loadWebViewComponent]);var appState=(0,_react.useRef)(_reactNative.AppState.currentState);(0,_react.useEffect)(function(){if(_reactNative.Platform.OS!=='android')return;var pollInterval=setInterval((0,_asyncToGenerator2.default)(function*(){if(pendingAuthWebViewPromises.current.size===0){return;}try{var pendingUrls=yield _NativeStripeSdkModule.default.pollAndClearPendingStripeConnectUrls();if(pendingUrls&&pendingUrls.length>0){pendingUrls.forEach(function(url){if(url.startsWith('stripe-connect://')){if(recentlyHandledUrls.current.has(url)){return;}recentlyHandledUrls.current.add(url);setTimeout(function(){recentlyHandledUrls.current.delete(url);},URL_DEDUPLICATION_TIMEOUT_MS);var firstEntry=pendingAuthWebViewPromises.current.entries().next().value;if(firstEntry){var _firstEntry=(0,_slicedToArray2.default)(firstEntry,2),id=_firstEntry[0],promiseData=_firstEntry[1];if(promiseData.timeoutId){clearTimeout(promiseData.timeoutId);}pendingAuthWebViewPromises.current.delete(id);promiseData.callback(id,url);_NativeStripeSdkModule.default.authWebViewDeepLinkHandled(id).catch(function(){});}}});}}catch(_error){}}),POLLING_INTERVAL_MS);return function(){clearInterval(pollInterval);};},[]);(0,_react.useEffect)(function(){var subscription=_reactNative.AppState.addEventListener('change',function(nextAppState){if(appState.current.match(/inactive|background/)&&nextAppState==='active'){if(pendingAuthWebViewPromises.current.size>0){pendingAuthWebViewPromises.current.forEach(function(promiseData,id){if(!promiseData.timeoutId){var timeoutId=setTimeout(function(){var stillPending=pendingAuthWebViewPromises.current.get(id);if(stillPending){pendingAuthWebViewPromises.current.delete(id);stillPending.callback(id,null);}},DEEP_LINK_GRACE_PERIOD_MS);promiseData.timeoutId=timeoutId;}});}}appState.current=nextAppState;});return function(){var _pendingFinancialConn;var promises=pendingAuthWebViewPromises.current;promises.forEach(function(promiseData,_id){if(promiseData.timeoutId){clearTimeout(promiseData.timeoutId);}});promises.clear();(_pendingFinancialConn=pendingFinancialConnectionsPromise.current)==null||_pendingFinancialConn.cleanup();subscription.remove();};},[]);var _useConnectComponents=(0,_ConnectComponentsProvider.useConnectComponents)(),connectInstance=_useConnectComponents.connectInstance,appearance=_useConnectComponents.appearance,locale=_useConnectComponents.locale,analyticsClient=_useConnectComponents.analyticsClient;var _ref3=connectInstance.initParams,fonts=_ref3.fonts,publishableKey=_ref3.publishableKey,fetchClientSecret=_ref3.fetchClientSecret,overrides=_ref3.overrides;var component=props.component,componentProps=props.componentProps,onLoadError=props.onLoadError,onLoaderStart=props.onLoaderStart,onPageDidLoad=props.onPageDidLoad,callbacks=props.callbacks,style=props.style;var componentAnalytics=(0,_react.useMemo)(function(){return new _ComponentAnalyticsClient.ComponentAnalyticsClient(analyticsClient,{publishableKey:publishableKey,platformId:overrides==null?void 0:overrides.platformId,merchantId:overrides==null?void 0:overrides.merchantId,livemode:typeof(overrides==null?void 0:overrides.livemode)==='boolean'?overrides.livemode:publishableKey==null?void 0:publishableKey.startsWith('pk_live_'),component:component});},[analyticsClient,publishableKey,overrides,component]);var hashParams={component:component,publicKey:publishableKey,merchantIdOverride:overrides==null?void 0:overrides.merchantId,platformIdOverride:overrides==null?void 0:overrides.platformId,apiKeyOverride:overrides==null?void 0:overrides.apiKey,livemodeOverride:overrides==null?void 0:overrides.livemode};var hash=Object.entries(hashParams).filter(function(_ref4){var _ref5=(0,_slicedToArray2.default)(_ref4,2),_=_ref5[0],value=_ref5[1];return value!=null;}).map(function(_ref6){var _ref7=(0,_slicedToArray2.default)(_ref6,2),key=_ref7[0],value=_ref7[1];return`${encodeURIComponent(key)}=${encodeURIComponent(value)}`;}).join('&');var connectURL=`${BASE_URL}/v1.0/react_native_webview.html#${hash}`;var source=(0,_react.useMemo)(function(){return{uri:connectURL};},[connectURL]);var ref=(0,_react.useRef)(null);var hasTriedSourceReload=(0,_react.useRef)(false);var _useState3=(0,_react.useState)(appearance),_useState4=(0,_slicedToArray2.default)(_useState3,2),prevAppearance=_useState4[0],setPrevAppearance=_useState4[1];var _useState5=(0,_react.useState)(locale),_useState6=(0,_slicedToArray2.default)(_useState5,2),prevLocale=_useState6[0],setPrevLocale=_useState6[1];if(prevAppearance!==appearance||prevLocale!==locale){var _ref$current;setPrevAppearance(appearance);setPrevLocale(locale);var patchedAppearance=withDefaultFontFamily(appearance);(_ref$current=ref.current)==null||_ref$current.injectJavaScript(`
2
2
  (function() {
3
3
  window.updateConnectInstance(${JSON.stringify({appearance:patchedAppearance,locale:locale})});
4
4
  true;
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=ModalCloseButton;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/wooj/stripe/stripe-react-native/src/connect/ModalCloseButton.tsx";var size=36;var hitSlop={top:10,bottom:10,left:10,right:10};function ModalCloseButton(_ref){var onPress=_ref.onPress;return(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:onPress,accessibilityRole:"button",hitSlop:hitSlop,style:[styles.button,{width:size,height:size,borderRadius:size/2}],activeOpacity:0.7,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.cross,{fontSize:Math.round(size*0.6)}],children:"\xD7"})});}var styles=_reactNative.StyleSheet.create({button:{alignItems:'center',justifyContent:'center'},cross:{lineHeight:undefined,includeFontPadding:false,textAlign:'center'}});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=ModalCloseButton;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/mats/stripe/stripe-react-native/src/connect/ModalCloseButton.tsx";var size=36;var hitSlop={top:10,bottom:10,left:10,right:10};function ModalCloseButton(_ref){var onPress=_ref.onPress;return(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:onPress,accessibilityRole:"button",hitSlop:hitSlop,style:[styles.button,{width:size,height:size,borderRadius:size/2}],activeOpacity:0.7,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.cross,{fontSize:Math.round(size*0.6)}],children:"\xD7"})});}var styles=_reactNative.StyleSheet.create({button:{alignItems:'center',justifyContent:'center'},cross:{lineHeight:undefined,includeFontPadding:false,textAlign:'center'}});
2
2
  //# sourceMappingURL=ModalCloseButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.NavigationBar=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _NativeNavigationBar=_interopRequireDefault(require("../specs/NativeNavigationBar"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["title","onCloseButtonPress"];var _this=this,_jsxFileName="/Users/wooj/stripe/stripe-react-native/src/connect/NavigationBar.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var NavigationBar=exports.NavigationBar=(0,_react.forwardRef)(function(_ref,ref){var title=_ref.title,onCloseButtonPress=_ref.onCloseButtonPress,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeNavigationBar.default,Object.assign({ref:ref,title:title,onCloseButtonPress:onCloseButtonPress?function(_event){onCloseButtonPress();}:undefined},rest));});NavigationBar.displayName='NavigationBar';
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.NavigationBar=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _NativeNavigationBar=_interopRequireDefault(require("../specs/NativeNavigationBar"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["title","onCloseButtonPress"];var _this=this,_jsxFileName="/Users/mats/stripe/stripe-react-native/src/connect/NavigationBar.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var NavigationBar=exports.NavigationBar=(0,_react.forwardRef)(function(_ref,ref){var title=_ref.title,onCloseButtonPress=_ref.onCloseButtonPress,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeNavigationBar.default,Object.assign({ref:ref,title:title,onCloseButtonPress:onCloseButtonPress?function(_event){onCloseButtonPress();}:undefined},rest));});NavigationBar.displayName='NavigationBar';
2
2
  //# sourceMappingURL=NavigationBar.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var _TextInputState=_interopRequireDefault(require("react-native/Libraries/Components/TextInput/TextInputState"));var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in _TextInputState.default){_TextInputState.default.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in _TextInputState.default){_TextInputState.default.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in _TextInputState.default){_TextInputState.default.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in _TextInputState.default){return _TextInputState.default.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Components/TextInput/TextInputState'). Source: /Users/wooj/stripe/stripe-react-native/src/helpers.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var _TextInputState=_interopRequireDefault(require("react-native/Libraries/Components/TextInput/TextInputState"));var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in _TextInputState.default){_TextInputState.default.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in _TextInputState.default){_TextInputState.default.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in _TextInputState.default){_TextInputState.default.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in _TextInputState.default){return _TextInputState.default.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Components/TextInput/TextInputState'). Source: /Users/mats/stripe/stripe-react-native/src/helpers.ts 6:0");
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useOnramp=useOnramp;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _NativeOnrampSdkModule=_interopRequireDefault(require("../specs/NativeOnrampSdkModule"));var _react=require("react");var _events=require("../events");var onCheckoutClientSecretRequestedSubscription=null;function useOnramp(){var _configure=(0,_react.useCallback)(function(){var _ref=(0,_asyncToGenerator2.default)(function*(config){return _NativeOnrampSdkModule.default.configureOnramp(config);});return function(_x){return _ref.apply(this,arguments);};}(),[]);var _hasLinkAccount=(0,_react.useCallback)(function(){var _ref2=(0,_asyncToGenerator2.default)(function*(email){return _NativeOnrampSdkModule.default.hasLinkAccount(email);});return function(_x2){return _ref2.apply(this,arguments);};}(),[]);var _registerLinkUser=(0,_react.useCallback)(function(){var _ref3=(0,_asyncToGenerator2.default)(function*(info){return _NativeOnrampSdkModule.default.registerLinkUser(info);});return function(_x3){return _ref3.apply(this,arguments);};}(),[]);var _registerWalletAddress=(0,_react.useCallback)(function(){var _ref4=(0,_asyncToGenerator2.default)(function*(walletAddress,network){return _NativeOnrampSdkModule.default.registerWalletAddress(walletAddress,network);});return function(_x4,_x5){return _ref4.apply(this,arguments);};}(),[]);var _attachKycInfo=(0,_react.useCallback)(function(){var _ref5=(0,_asyncToGenerator2.default)(function*(kycInfo){return _NativeOnrampSdkModule.default.attachKycInfo(kycInfo);});return function(_x6){return _ref5.apply(this,arguments);};}(),[]);var _presentKycInfoVerification=(0,_react.useCallback)(function(){var _ref6=(0,_asyncToGenerator2.default)(function*(updatedAddress){return _NativeOnrampSdkModule.default.presentKycInfoVerification(updatedAddress);});return function(_x7){return _ref6.apply(this,arguments);};}(),[]);var _authenticateUserWithToken=(0,_react.useCallback)(function(){var _ref7=(0,_asyncToGenerator2.default)(function*(linkAuthTokenClientSecret){return _NativeOnrampSdkModule.default.authenticateUserWithToken(linkAuthTokenClientSecret);});return function(_x8){return _ref7.apply(this,arguments);};}(),[]);var _updatePhoneNumber=(0,_react.useCallback)(function(){var _ref8=(0,_asyncToGenerator2.default)(function*(phone){return _NativeOnrampSdkModule.default.updatePhoneNumber(phone);});return function(_x9){return _ref8.apply(this,arguments);};}(),[]);var _authenticateUser=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return _NativeOnrampSdkModule.default.authenticateUser();}),[]);var _verifyIdentity=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return _NativeOnrampSdkModule.default.verifyIdentity();}),[]);var _collectPaymentMethod=(0,_react.useCallback)(function(){var _ref1=(0,_asyncToGenerator2.default)(function*(paymentMethod,platformPayParams){return _NativeOnrampSdkModule.default.collectPaymentMethod(paymentMethod,platformPayParams!=null?platformPayParams:{});});return function(_x0,_x1){return _ref1.apply(this,arguments);};}(),[]);var _createCryptoPaymentToken=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return _NativeOnrampSdkModule.default.createCryptoPaymentToken();}),[]);var _performCheckout=(0,_react.useCallback)(function(){var _ref11=(0,_asyncToGenerator2.default)(function*(onrampSessionId,provideCheckoutClientSecret){var _onCheckoutClientSecr;(_onCheckoutClientSecr=onCheckoutClientSecretRequestedSubscription)==null||_onCheckoutClientSecr.remove();onCheckoutClientSecretRequestedSubscription=(0,_events.addOnrampListener)('onCheckoutClientSecretRequested',(0,_asyncToGenerator2.default)(function*(){try{var clientSecret=yield provideCheckoutClientSecret();_NativeOnrampSdkModule.default.provideCheckoutClientSecret(clientSecret);}catch(error){_NativeOnrampSdkModule.default.provideCheckoutClientSecret(null);}}));return _NativeOnrampSdkModule.default.performCheckout(onrampSessionId);});return function(_x10,_x11){return _ref11.apply(this,arguments);};}(),[]);var _authorize=(0,_react.useCallback)(function(){var _ref13=(0,_asyncToGenerator2.default)(function*(linkAuthIntentId){return _NativeOnrampSdkModule.default.onrampAuthorize(linkAuthIntentId);});return function(_x12){return _ref13.apply(this,arguments);};}(),[]);var _getCryptoTokenDisplayData=(0,_react.useCallback)(function(){var _ref14=(0,_asyncToGenerator2.default)(function*(token){return _NativeOnrampSdkModule.default.getCryptoTokenDisplayData(token);});return function(_x13){return _ref14.apply(this,arguments);};}(),[]);var _logOut=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return _NativeOnrampSdkModule.default.logout();}),[]);var _isAuthError=function _isAuthError(error){var stripeErrorCode=error==null?void 0:error.stripeErrorCode;if(stripeErrorCode==null){return false;}var authErrorCodes=['consumer_session_credentials_invalid','consumer_session_expired'];return authErrorCodes.includes(stripeErrorCode);};return{configure:_configure,hasLinkAccount:_hasLinkAccount,registerLinkUser:_registerLinkUser,registerWalletAddress:_registerWalletAddress,attachKycInfo:_attachKycInfo,presentKycInfoVerification:_presentKycInfoVerification,updatePhoneNumber:_updatePhoneNumber,authenticateUser:_authenticateUser,authenticateUserWithToken:_authenticateUserWithToken,verifyIdentity:_verifyIdentity,collectPaymentMethod:_collectPaymentMethod,createCryptoPaymentToken:_createCryptoPaymentToken,performCheckout:_performCheckout,authorize:_authorize,getCryptoTokenDisplayData:_getCryptoTokenDisplayData,logOut:_logOut,isAuthError:_isAuthError};}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useOnramp=useOnramp;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _NativeOnrampSdkModule=_interopRequireDefault(require("../specs/NativeOnrampSdkModule"));var _react=require("react");var _events=require("../events");var onCheckoutClientSecretRequestedSubscription=null;function useOnramp(){var _configure=(0,_react.useCallback)(function(){var _ref=(0,_asyncToGenerator2.default)(function*(config){return _NativeOnrampSdkModule.default.configureOnramp(config);});return function(_x){return _ref.apply(this,arguments);};}(),[]);var _hasLinkAccount=(0,_react.useCallback)(function(){var _ref2=(0,_asyncToGenerator2.default)(function*(email){return _NativeOnrampSdkModule.default.hasLinkAccount(email);});return function(_x2){return _ref2.apply(this,arguments);};}(),[]);var _registerLinkUser=(0,_react.useCallback)(function(){var _ref3=(0,_asyncToGenerator2.default)(function*(info){return _NativeOnrampSdkModule.default.registerLinkUser(info);});return function(_x3){return _ref3.apply(this,arguments);};}(),[]);var _registerWalletAddress=(0,_react.useCallback)(function(){var _ref4=(0,_asyncToGenerator2.default)(function*(walletAddress,network){return _NativeOnrampSdkModule.default.registerWalletAddress(walletAddress,network);});return function(_x4,_x5){return _ref4.apply(this,arguments);};}(),[]);var _attachKycInfo=(0,_react.useCallback)(function(){var _ref5=(0,_asyncToGenerator2.default)(function*(kycInfo){return _NativeOnrampSdkModule.default.attachKycInfo(kycInfo);});return function(_x6){return _ref5.apply(this,arguments);};}(),[]);var _presentKycInfoVerification=(0,_react.useCallback)(function(){var _ref6=(0,_asyncToGenerator2.default)(function*(updatedAddress){return _NativeOnrampSdkModule.default.presentKycInfoVerification(updatedAddress);});return function(_x7){return _ref6.apply(this,arguments);};}(),[]);var _authenticateUserWithToken=(0,_react.useCallback)(function(){var _ref7=(0,_asyncToGenerator2.default)(function*(linkAuthTokenClientSecret){return _NativeOnrampSdkModule.default.authenticateUserWithToken(linkAuthTokenClientSecret);});return function(_x8){return _ref7.apply(this,arguments);};}(),[]);var _updatePhoneNumber=(0,_react.useCallback)(function(){var _ref8=(0,_asyncToGenerator2.default)(function*(phone){return _NativeOnrampSdkModule.default.updatePhoneNumber(phone);});return function(_x9){return _ref8.apply(this,arguments);};}(),[]);var _verifyIdentity=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return _NativeOnrampSdkModule.default.verifyIdentity();}),[]);var _collectPaymentMethod=(0,_react.useCallback)(function(){var _ref0=(0,_asyncToGenerator2.default)(function*(paymentMethod,platformPayParams){return _NativeOnrampSdkModule.default.collectPaymentMethod(paymentMethod,platformPayParams!=null?platformPayParams:{});});return function(_x0,_x1){return _ref0.apply(this,arguments);};}(),[]);var _createCryptoPaymentToken=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return _NativeOnrampSdkModule.default.createCryptoPaymentToken();}),[]);var _performCheckout=(0,_react.useCallback)(function(){var _ref10=(0,_asyncToGenerator2.default)(function*(onrampSessionId,provideCheckoutClientSecret){var _onCheckoutClientSecr;(_onCheckoutClientSecr=onCheckoutClientSecretRequestedSubscription)==null||_onCheckoutClientSecr.remove();onCheckoutClientSecretRequestedSubscription=(0,_events.addOnrampListener)('onCheckoutClientSecretRequested',(0,_asyncToGenerator2.default)(function*(){try{var clientSecret=yield provideCheckoutClientSecret();_NativeOnrampSdkModule.default.provideCheckoutClientSecret(clientSecret);}catch(error){_NativeOnrampSdkModule.default.provideCheckoutClientSecret(null);}}));return _NativeOnrampSdkModule.default.performCheckout(onrampSessionId);});return function(_x10,_x11){return _ref10.apply(this,arguments);};}(),[]);var _authorize=(0,_react.useCallback)(function(){var _ref12=(0,_asyncToGenerator2.default)(function*(linkAuthIntentId){return _NativeOnrampSdkModule.default.onrampAuthorize(linkAuthIntentId);});return function(_x12){return _ref12.apply(this,arguments);};}(),[]);var _getCryptoTokenDisplayData=(0,_react.useCallback)(function(){var _ref13=(0,_asyncToGenerator2.default)(function*(token){return _NativeOnrampSdkModule.default.getCryptoTokenDisplayData(token);});return function(_x13){return _ref13.apply(this,arguments);};}(),[]);var _logOut=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return _NativeOnrampSdkModule.default.logout();}),[]);var _isAuthError=function _isAuthError(error){var stripeErrorCode=error==null?void 0:error.stripeErrorCode;if(stripeErrorCode==null){return false;}var authErrorCodes=['consumer_session_credentials_invalid','consumer_session_expired'];return authErrorCodes.includes(stripeErrorCode);};return{configure:_configure,hasLinkAccount:_hasLinkAccount,registerLinkUser:_registerLinkUser,registerWalletAddress:_registerWalletAddress,attachKycInfo:_attachKycInfo,presentKycInfoVerification:_presentKycInfoVerification,updatePhoneNumber:_updatePhoneNumber,authenticateUserWithToken:_authenticateUserWithToken,verifyIdentity:_verifyIdentity,collectPaymentMethod:_collectPaymentMethod,createCryptoPaymentToken:_createCryptoPaymentToken,performCheckout:_performCheckout,authorize:_authorize,getCryptoTokenDisplayData:_getCryptoTokenDisplayData,logOut:_logOut,isAuthError:_isAuthError};}
2
2
  //# sourceMappingURL=useOnramp.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_NativeOnrampSdkModule","_interopRequireDefault","require","_react","_events","onCheckoutClientSecretRequestedSubscription","useOnramp","_configure","useCallback","_ref","_asyncToGenerator2","default","config","NativeOnrampSdk","configureOnramp","_x","apply","arguments","_hasLinkAccount","_ref2","email","hasLinkAccount","_x2","_registerLinkUser","_ref3","info","registerLinkUser","_x3","_registerWalletAddress","_ref4","walletAddress","network","registerWalletAddress","_x4","_x5","_attachKycInfo","_ref5","kycInfo","attachKycInfo","_x6","_presentKycInfoVerification","_ref6","updatedAddress","presentKycInfoVerification","_x7","_authenticateUserWithToken","_ref7","linkAuthTokenClientSecret","authenticateUserWithToken","_x8","_updatePhoneNumber","_ref8","phone","updatePhoneNumber","_x9","_authenticateUser","authenticateUser","_verifyIdentity","verifyIdentity","_collectPaymentMethod","_ref1","paymentMethod","platformPayParams","collectPaymentMethod","_x0","_x1","_createCryptoPaymentToken","createCryptoPaymentToken","_performCheckout","_ref11","onrampSessionId","provideCheckoutClientSecret","_onCheckoutClientSecr","remove","addOnrampListener","clientSecret","error","performCheckout","_x10","_x11","_authorize","_ref13","linkAuthIntentId","onrampAuthorize","_x12","_getCryptoTokenDisplayData","_ref14","token","getCryptoTokenDisplayData","_x13","_logOut","logout","_isAuthError","stripeErrorCode","authErrorCodes","includes","configure","authorize","logOut","isAuthError"],"sourceRoot":"../../../src","sources":["hooks/useOnramp.tsx"],"mappings":"0QACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,oCAGA,IAAAC,MAAA,CAAAD,OAAA,UACA,IAAAE,OAAA,CAAAF,OAAA,cAGA,GAAI,CAAAG,2CAAqE,CACvE,IAAI,CAKC,QAAS,CAAAC,SAASA,CAAA,CAAG,CAC1B,GAAM,CAAAC,UAAU,CAAG,GAAAC,kBAAW,iBAAAC,IAAA,IAAAC,kBAAA,CAAAC,OAAA,EAC5B,UACEC,MAA4B,CACsB,CAClD,MAAO,CAAAC,8BAAe,CAACC,eAAe,CAACF,MAAM,CAAC,CAChD,CAAC,kBAAAG,EAAA,SAAAN,IAAA,CAAAO,KAAA,MAAAC,SAAA,QACD,EACF,CAAC,CAED,GAAM,CAAAC,eAAe,CAAG,GAAAV,kBAAW,iBAAAW,KAAA,IAAAT,kBAAA,CAAAC,OAAA,EACjC,UAAOS,KAAa,CAA2C,CAC7D,MAAO,CAAAP,8BAAe,CAACQ,cAAc,CAACD,KAAK,CAAC,CAC9C,CAAC,kBAAAE,GAAA,SAAAH,KAAA,CAAAH,KAAA,MAAAC,SAAA,QACD,EACF,CAAC,CAED,GAAM,CAAAM,iBAAiB,CAAG,GAAAf,kBAAW,iBAAAgB,KAAA,IAAAd,kBAAA,CAAAC,OAAA,EACnC,UACEc,IAAyB,CACkB,CAC3C,MAAO,CAAAZ,8BAAe,CAACa,gBAAgB,CAACD,IAAI,CAAC,CAC/C,CAAC,kBAAAE,GAAA,SAAAH,KAAA,CAAAR,KAAA,MAAAC,SAAA,QACD,EACF,CAAC,CAED,GAAM,CAAAW,sBAAsB,CAAG,GAAAp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AAiB,eAAe,CAAGjB,KAAK,cAALA,KAAK,CAAEiB,eAAe,CAC9C,GAAIA,eAAe,EAAI,IAAI,CAAE,CAC3B,MAAO,MAAK,CACd,CACA,GAAM,CAAAC,cAAc,CAAG,CACrB,sCAAsC,CACtC,0BAA0B,CAC3B,CACD,MAAO,CAAAA,cAAc,CAACC,QAAQ,CAACF,eAAe,CAAC,CACjD,CAAC,CAED,MAAO,CAOLG,SAAS,CAAEzF,UAAU,CAQrBc,cAAc,CAAEH,eAAe,CAQ/BQ,gBAAgB,CAAEH,iBAAiB,CAUnCS,qBAAqB,CAAEJ,sBAAsB,CAQ7CU,aAAa,CAAEH,cAAc,CAU7BQ,0BAA0B,CAAEH,2BAA2B,CAQvDa,iBAAiB,CAAEH,kBAAkB,CAQrCM,gBAAgB,CAAED,iBAAiB,CASnCP,yBAAyB,CAAEH,0BAA0B,CAQrDa,cAAc,CAAED,eAAe,CAa/BM,oBAAoB,CAAEJ,qBAAqB,CAQ3CQ,wBAAwB,CAAED,yBAAyB,CASnDW,eAAe,CAAET,gBAAgB,CAQjC6B,SAAS,CAAEjB,UAAU,CASrBQ,yBAAyB,CAAEH,0BAA0B,CAOrDa,MAAM,CAAER,OAAO,CASfS,WAAW,CAAEP,YACf,CAAC,CACH","ignoreList":[]}
1
+ {"version":3,"names":["_NativeOnrampSdkModule","_interopRequireDefault","require","_react","_events","onCheckoutClientSecretRequestedSubscription","useOnramp","_configure","useCallback","_ref","_asyncToGenerator2","default","config","NativeOnrampSdk","configureOnramp","_x","apply","arguments","_hasLinkAccount","_ref2","email","hasLinkAccount","_x2","_registerLinkUser","_ref3","info","registerLinkUser","_x3","_registerWalletAddress","_ref4","walletAddress","network","registerWalletAddress","_x4","_x5","_attachKycInfo","_ref5","kycInfo","attachKycInfo","_x6","_presentKycInfoVerification","_ref6","updatedAddress","presentKycInfoVerification","_x7","_authenticateUserWithToken","_ref7","linkAuthTokenClientSecret","authenticateUserWithToken","_x8","_updatePhoneNumber","_ref8","phone","updatePhoneNumber","_x9","_verifyIdentity","verifyIdentity","_collectPaymentMethod","_ref0","paymentMethod","platformPayParams","collectPaymentMethod","_x0","_x1","_createCryptoPaymentToken","createCryptoPaymentToken","_performCheckout","_ref10","onrampSessionId","provideCheckoutClientSecret","_onCheckoutClientSecr","remove","addOnrampListener","clientSecret","error","performCheckout","_x10","_x11","_authorize","_ref12","linkAuthIntentId","onrampAuthorize","_x12","_getCryptoTokenDisplayData","_ref13","token","getCryptoTokenDisplayData","_x13","_logOut","logout","_isAuthError","stripeErrorCode","authErrorCodes","includes","configure","authorize","logOut","isAuthError"],"sourceRoot":"../../../src","sources":["hooks/useOnramp.tsx"],"mappings":"0QACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,oCAGA,IAAAC,MAAA,CAAAD,OAAA,UACA,IAAAE,OAAA,CAAAF,OAAA,cAGA,GAAI,CAAAG,2CAAqE,CACvE,IAAI,CAKC,QAAS,CAAAC,SAASA,CAAA,CAAG,CAC1B,GAAM,CAAAC,UAAU,CAAG,GAAAC,kBAAW,iBAAAC,IAAA,IAAAC,kBAAA,CAAAC,OAAA,EAC5B,UACEC,MAA4B,CACsB,CAClD,MAAO,CAAAC,8BAAe,CAACC,eAAe,CAACF,MAAM,CAAC,CAChD,CAAC,kBAAAG,EAAA,SAAAN,IAAA,CAAAO,KAAA,MAAAC,SAAA,QACD,EACF,CAAC,CAED,GAAM,CAAAC,eAAe,CAAG,GAAAV,kBAAW,iBAAAW,KAAA,IAAAT,kBAAA,CAAAC,OAAA,EACjC,UAAOS,KAAa,CAA2C,CAC7D,MAAO,CAAAP,8BAAe,CAACQ,cAAc,CAACD,KAAK,CAAC,CAC9C,CAAC,kBAAAE,GAAA,SAAAH,KAAA,CAAAH,KAAA,MAAAC,SAAA,QACD,EACF,CAAC,CAED,GAAM,CAAAM,iBAAiB,CAAG,GAAAf,kBAAW,iBAAAgB,KAAA,IAAAd,kBAAA,CAAAC,OAAA,EACnC,UACEc,IAAyB,CAC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AM,CAAAiB,eAAe,CAAGjB,KAAK,cAALA,KAAK,CAAEiB,eAAe,CAC9C,GAAIA,eAAe,EAAI,IAAI,CAAE,CAC3B,MAAO,MAAK,CACd,CACA,GAAM,CAAAC,cAAc,CAAG,CACrB,sCAAsC,CACtC,0BAA0B,CAC3B,CACD,MAAO,CAAAA,cAAc,CAACC,QAAQ,CAACF,eAAe,CAAC,CACjD,CAAC,CAED,MAAO,CAOLG,SAAS,CAAEvF,UAAU,CAQrBc,cAAc,CAAEH,eAAe,CAQ/BQ,gBAAgB,CAAEH,iBAAiB,CAUnCS,qBAAqB,CAAEJ,sBAAsB,CAQ7CU,aAAa,CAAEH,cAAc,CAW7BQ,0BAA0B,CAAEH,2BAA2B,CAQvDa,iBAAiB,CAAEH,kBAAkB,CASrCF,yBAAyB,CAAEH,0BAA0B,CAQrDW,cAAc,CAAED,eAAe,CAa/BM,oBAAoB,CAAEJ,qBAAqB,CAQ3CQ,wBAAwB,CAAED,yBAAyB,CASnDW,eAAe,CAAET,gBAAgB,CAQjC6B,SAAS,CAAEjB,UAAU,CASrBQ,yBAAyB,CAAEH,0BAA0B,CAOrDa,MAAM,CAAER,OAAO,CASfS,WAAW,CAAEP,YACf,CAAC,CACH","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddToWalletButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddToWalletButton",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({iOSButtonStyle:true,androidAssetSource:{process:function(req){return'default'in req?req.default:req;}(require('react-native/Libraries/Image/resolveAssetSource'))},testEnv:true,cardDetails:true,token:true,ephemeralKey:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeAddToWalletButton.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddToWalletButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddToWalletButton",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({iOSButtonStyle:true,androidAssetSource:{process:function(req){return'default'in req?req.default:req;}(require('react-native/Libraries/Image/resolveAssetSource'))},testEnv:true,cardDetails:true,token:true,ephemeralKey:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeAddToWalletButton.ts 6:0");
2
2
  //# sourceMappingURL=NativeAddToWalletButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddressSheetView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddressSheetView",directEventTypes:{topSubmitAction:{registrationName:"onSubmitAction"},topErrorAction:{registrationName:"onErrorAction"}},validAttributes:Object.assign({visible:true,presentationStyle:true,animationStyle:true,appearance:true,defaultValues:true,additionalFields:true,allowedCountries:true,autocompleteCountries:true,primaryButtonTitle:true,sheetTitle:true,googlePlacesApiKey:true},ConditionallyIgnoredEventHandlers({onSubmitAction:true,onErrorAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeAddressSheet.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddressSheetView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddressSheetView",directEventTypes:{topSubmitAction:{registrationName:"onSubmitAction"},topErrorAction:{registrationName:"onErrorAction"}},validAttributes:Object.assign({visible:true,presentationStyle:true,animationStyle:true,appearance:true,defaultValues:true,additionalFields:true,allowedCountries:true,autocompleteCountries:true,primaryButtonTitle:true,sheetTitle:true,googlePlacesApiKey:true},ConditionallyIgnoredEventHandlers({onSubmitAction:true,onErrorAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeAddressSheet.ts 6:0");
2
2
  //# sourceMappingURL=NativeAddressSheet.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ApplePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ApplePayButton",directEventTypes:{topShippingMethodSelectedAction:{registrationName:"onShippingMethodSelectedAction"},topShippingContactSelectedAction:{registrationName:"onShippingContactSelectedAction"},topCouponCodeEnteredAction:{registrationName:"onCouponCodeEnteredAction"},topOrderTrackingAction:{registrationName:"onOrderTrackingAction"}},validAttributes:Object.assign({disabled:true,type:true,buttonStyle:true,buttonBorderRadius:true,hasShippingMethodCallback:true,hasShippingContactCallback:true,hasCouponCodeCallback:true,hasOrderTrackingCallback:true},ConditionallyIgnoredEventHandlers({onShippingMethodSelectedAction:true,onShippingContactSelectedAction:true,onCouponCodeEnteredAction:true,onOrderTrackingAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeApplePayButton.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ApplePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ApplePayButton",directEventTypes:{topShippingMethodSelectedAction:{registrationName:"onShippingMethodSelectedAction"},topShippingContactSelectedAction:{registrationName:"onShippingContactSelectedAction"},topCouponCodeEnteredAction:{registrationName:"onCouponCodeEnteredAction"},topOrderTrackingAction:{registrationName:"onOrderTrackingAction"}},validAttributes:Object.assign({disabled:true,type:true,buttonStyle:true,buttonBorderRadius:true,hasShippingMethodCallback:true,hasShippingContactCallback:true,hasCouponCodeCallback:true,hasOrderTrackingCallback:true},ConditionallyIgnoredEventHandlers({onShippingMethodSelectedAction:true,onShippingContactSelectedAction:true,onCouponCodeEnteredAction:true,onOrderTrackingAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeApplePayButton.ts 7:0");
2
2
  //# sourceMappingURL=NativeApplePayButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AuBECSDebitForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AuBECSDebitForm",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({companyName:true,formStyle:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeAuBECSDebitForm.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AuBECSDebitForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AuBECSDebitForm",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({companyName:true,formStyle:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeAuBECSDebitForm.ts 3:0");
2
2
  //# sourceMappingURL=NativeAuBECSDebitForm.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardField';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardField",directEventTypes:{topCardChange:{registrationName:"onCardChange"},topFocusChange:{registrationName:"onFocusChange"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,countryCode:true,dangerouslyGetFullCardDetails:true,disabled:true,onBehalfOf:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onCardChange:true,onFocusChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);},clear:function clear(ref){dispatchCommand(ref,"clear",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardField.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardField.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardField';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardField",directEventTypes:{topCardChange:{registrationName:"onCardChange"},topFocusChange:{registrationName:"onFocusChange"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,countryCode:true,dangerouslyGetFullCardDetails:true,disabled:true,onBehalfOf:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onCardChange:true,onFocusChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);},clear:function clear(ref){dispatchCommand(ref,"clear",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeCardField.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeCardField.ts 7:0");
2
2
  //# sourceMappingURL=NativeCardField.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardForm",directEventTypes:{topFocusChange:{registrationName:"onFocusChange"},topFormComplete:{registrationName:"onFormComplete"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,dangerouslyGetFullCardDetails:true,defaultValues:true,disabled:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onFocusChange:true,onFormComplete:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardForm.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeCardForm.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardForm",directEventTypes:{topFocusChange:{registrationName:"onFocusChange"},topFormComplete:{registrationName:"onFormComplete"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,dangerouslyGetFullCardDetails:true,defaultValues:true,disabled:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onFocusChange:true,onFormComplete:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeCardForm.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeCardForm.ts 7:0");
2
2
  //# sourceMappingURL=NativeCardForm.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ConnectAccountOnboardingView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ConnectAccountOnboardingView",directEventTypes:{topExitAction:{registrationName:"onExitAction"}},validAttributes:Object.assign({visible:true,title:true,backgroundColor:true,textColor:true},ConditionallyIgnoredEventHandlers({onExitAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeConnectAccountOnboardingView.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ConnectAccountOnboardingView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ConnectAccountOnboardingView",directEventTypes:{topExitAction:{registrationName:"onExitAction"}},validAttributes:Object.assign({visible:true,title:true,backgroundColor:true,textColor:true},ConditionallyIgnoredEventHandlers({onExitAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeConnectAccountOnboardingView.ts 3:0");
2
2
  //# sourceMappingURL=NativeConnectAccountOnboardingView.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require.dispatchCommand;var nativeComponentName='EmbeddedPaymentElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"EmbeddedPaymentElementView",validAttributes:{configuration:true,intentConfiguration:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={confirm:function confirm(ref){dispatchCommand(ref,"confirm",[]);},clearPaymentOption:function clearPaymentOption(ref){dispatchCommand(ref,"clearPaymentOption",[]);},update:function update(ref,intentConfigurationJson){dispatchCommand(ref,"update",[intentConfigurationJson]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 2:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require.dispatchCommand;var nativeComponentName='EmbeddedPaymentElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"EmbeddedPaymentElementView",validAttributes:{configuration:true,intentConfiguration:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={confirm:function confirm(ref){dispatchCommand(ref,"confirm",[]);},clearPaymentOption:function clearPaymentOption(ref){dispatchCommand(ref,"clearPaymentOption",[]);},update:function update(ref,intentConfigurationJson){dispatchCommand(ref,"update",[intentConfigurationJson]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 2:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 3:0");
2
2
  //# sourceMappingURL=NativeEmbeddedPaymentElement.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='GooglePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"GooglePayButton",validAttributes:{type:true,appearance:true,borderRadius:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeGooglePayButton.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='GooglePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"GooglePayButton",validAttributes:{type:true,appearance:true,borderRadius:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeGooglePayButton.ts 6:0");
2
2
  //# sourceMappingURL=NativeGooglePayButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='NavigationBar';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"NavigationBar",directEventTypes:{topCloseButtonPress:{registrationName:"onCloseButtonPress"}},validAttributes:Object.assign({title:true},ConditionallyIgnoredEventHandlers({onCloseButtonPress:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='NavigationBar';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"NavigationBar",directEventTypes:{topCloseButtonPress:{registrationName:"onCloseButtonPress"}},validAttributes:Object.assign({title:true},ConditionallyIgnoredEventHandlers({onCloseButtonPress:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
2
2
  //# sourceMappingURL=NativeNavigationBar.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeOnrampSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CA8CpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeOnrampSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CA6CpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='PaymentMethodMessagingElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"PaymentMethodMessagingElementView",directEventTypes:{topStateChange:{registrationName:"onStateChange"}},validAttributes:Object.assign({appearance:true,configuration:true},ConditionallyIgnoredEventHandlers({onStateChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativePaymentMethodMessagingElement.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='PaymentMethodMessagingElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"PaymentMethodMessagingElementView",directEventTypes:{topStateChange:{registrationName:"onStateChange"}},validAttributes:Object.assign({appearance:true,configuration:true},ConditionallyIgnoredEventHandlers({onStateChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativePaymentMethodMessagingElement.ts 3:0");
2
2
  //# sourceMappingURL=NativePaymentMethodMessagingElement.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='StripeContainer';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"StripeContainer",validAttributes:{keyboardShouldPersistTaps:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/wooj/stripe/stripe-react-native/src/specs/NativeStripeContainer.ts 2:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='StripeContainer';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"StripeContainer",validAttributes:{keyboardShouldPersistTaps:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/mats/stripe/stripe-react-native/src/specs/NativeStripeContainer.ts 2:0");
2
2
  //# sourceMappingURL=NativeStripeContainer.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/wooj/stripe/stripe-react-native/src/types/EmbeddedPaymentElement.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var EmbeddedPaymentElement=function(){function EmbeddedPaymentElement(){(0,_classCallCheck2.default)(this,EmbeddedPaymentElement);}return(0,_createClass2.default)(EmbeddedPaymentElement,[{key:"update",value:(function(){var _update=(0,_asyncToGenerator2.default)(function*(intentConfig){var result=yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElement(intentConfig);return result;});function update(_x){return _update.apply(this,arguments);}return update;}())},{key:"confirm",value:(function(){var _confirm=(0,_asyncToGenerator2.default)(function*(){var result=yield _NativeStripeSdkModule.default.confirmEmbeddedPaymentElement(-1);return result;});function confirm(){return _confirm.apply(this,arguments);}return confirm;}())},{key:"clearPaymentOption",value:function clearPaymentOption(){_NativeStripeSdkModule.default.clearEmbeddedPaymentOption(-1);}}]);}();var confirmHandlerCallback=null;var confirmationTokenHandlerCallback=null;var formSheetActionConfirmCallback=null;var customPaymentMethodConfirmCallback=null;var rowSelectionCallback=null;function createEmbeddedPaymentElement(_x2,_x3){return _createEmbeddedPaymentElement.apply(this,arguments);}function _createEmbeddedPaymentElement(){_createEmbeddedPaymentElement=(0,_asyncToGenerator2.default)(function*(intentConfig,configuration){setupConfirmAndSelectionHandlers(intentConfig,configuration);yield _NativeStripeSdkModule.default.createEmbeddedPaymentElement(intentConfig,configuration);return new EmbeddedPaymentElement();});return _createEmbeddedPaymentElement.apply(this,arguments);}function setupConfirmAndSelectionHandlers(intentConfig,configuration){var _configuration$formSh,_configuration$rowSel;var confirmHandler=intentConfig.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref){var paymentMethod=_ref.paymentMethod,shouldSavePaymentMethod=_ref.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}var confirmationTokenConfirmHandler=intentConfig.confirmationTokenConfirmHandler;if(confirmationTokenConfirmHandler){var _confirmationTokenHan;(_confirmationTokenHan=confirmationTokenHandlerCallback)==null||_confirmationTokenHan.remove();confirmationTokenHandlerCallback=(0,_events.addListener)('onConfirmationTokenHandlerCallback',function(_ref2){var confirmationToken=_ref2.confirmationToken;confirmationTokenConfirmHandler(confirmationToken,_NativeStripeSdkModule.default.confirmationTokenCreationCallback);});}if(((_configuration$formSh=configuration.formSheetAction)==null?void 0:_configuration$formSh.type)==='confirm'){var confirmFormSheetHandler=configuration.formSheetAction.onFormSheetConfirmComplete;if(confirmFormSheetHandler){var _formSheetActionConfi;(_formSheetActionConfi=formSheetActionConfirmCallback)==null||_formSheetActionConfi.remove();formSheetActionConfirmCallback=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){confirmFormSheetHandler(result);});}}if(configuration.customPaymentMethodConfiguration){var customPaymentMethodHandler=configuration.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _customPaymentMethodC;(_customPaymentMethodC=customPaymentMethodConfirmCallback)==null||_customPaymentMethodC.remove();customPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref3){var customPaymentMethod=_ref3.customPaymentMethod,billingDetails=_ref3.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(result){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(result);});});}}if(((_configuration$rowSel=configuration.rowSelectionBehavior)==null?void 0:_configuration$rowSel.type)==='immediateAction'){var rowSelectionHandler=configuration.rowSelectionBehavior.onSelectPaymentOption;if(rowSelectionHandler){var _rowSelectionCallback;(_rowSelectionCallback=rowSelectionCallback)==null||_rowSelectionCallback.remove();rowSelectionCallback=(0,_events.addListener)('embeddedPaymentElementRowSelectionImmediateAction',function(){rowSelectionHandler();});}}}function useEmbeddedPaymentElement(intentConfig,configuration){var _this=this;var isAndroid=_reactNative.Platform.OS==='android';var elementRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),element=_useState2[0],setElement=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),paymentOption=_useState4[0],setPaymentOption=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),height=_useState6[0],setHeight=_useState6[1];var viewRef=(0,_react.useRef)(null);var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),loadingError=_useState8[0],setLoadingError=_useState8[1];var isLoaded=(0,_react.useMemo)(function(){return height!==undefined&&height>1;},[height]);function getElementOrThrow(ref){if(!ref.current){throw new Error('EmbeddedPaymentElement is not ready yet – wait until it finishes loading before calling this API.');}return ref.current;}(0,_react.useEffect)(function(){var active=true;(0,_asyncToGenerator2.default)(function*(){var el=yield createEmbeddedPaymentElement(intentConfig,configuration);if(!active)return;elementRef.current=el;setElement(el);})();return function(){active=false;elementRef.current=null;setElement(null);};},[intentConfig,configuration,viewRef,isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdatePaymentOption',function(_ref5){var opt=_ref5.paymentOption;return setPaymentOption(opt!=null?opt:null);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdateHeight',function(_ref6){var h=_ref6.height;if(h>0||isAndroid&&h===0){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);}});return function(){return sub.remove();};},[isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementLoadingFailed',function(nativeError){setLoadingError(new Error(nativeError.message));});return function(){return sub.remove();};},[]);var embeddedPaymentElementView=(0,_react.useMemo)(function(){if(isAndroid&&configuration&&intentConfig){return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:[{width:'100%',height:height}],configuration:configuration,intentConfiguration:intentConfig});}if(!element)return null;return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:{width:'100%',height:height},configuration:configuration,intentConfiguration:intentConfig});},[configuration,element,height,intentConfig,isAndroid]);var confirm=(0,_react.useCallback)(function(){var currentRef=viewRef.current;if(isAndroid){if(currentRef){var promise=new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){sub.remove();resolve(result);});});_NativeEmbeddedPaymentElement.Commands.confirm(currentRef);return promise;}else{return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}}return getElementOrThrow(elementRef).confirm();},[isAndroid]);var update=(0,_react.useCallback)(function(cfg){if(isAndroid){var currentRef=viewRef.current;if(currentRef){return new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementUpdateComplete',function(result){sub.remove();resolve(result);});_NativeEmbeddedPaymentElement.Commands.update(currentRef,JSON.stringify(cfg));});}return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}return getElementOrThrow(elementRef).update(cfg);},[isAndroid]);var clearPaymentOption=(0,_react.useCallback)(function(){if(isAndroid){var tag=(0,_reactNative.findNodeHandle)(viewRef.current);if(tag==null){return Promise.reject(new Error('Unable to find Android view handle'));}return _NativeStripeSdkModule.default.clearEmbeddedPaymentOption(tag);}getElementOrThrow(elementRef).clearPaymentOption();return Promise.resolve();},[isAndroid]);return{embeddedPaymentElementView:embeddedPaymentElementView,paymentOption:paymentOption,confirm:confirm,update:update,clearPaymentOption:clearPaymentOption,loadingError:loadingError,isLoaded:isLoaded};}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/mats/stripe/stripe-react-native/src/types/EmbeddedPaymentElement.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var EmbeddedPaymentElement=function(){function EmbeddedPaymentElement(){(0,_classCallCheck2.default)(this,EmbeddedPaymentElement);}return(0,_createClass2.default)(EmbeddedPaymentElement,[{key:"update",value:(function(){var _update=(0,_asyncToGenerator2.default)(function*(intentConfig){var result=yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElement(intentConfig);return result;});function update(_x){return _update.apply(this,arguments);}return update;}())},{key:"confirm",value:(function(){var _confirm=(0,_asyncToGenerator2.default)(function*(){var result=yield _NativeStripeSdkModule.default.confirmEmbeddedPaymentElement(-1);return result;});function confirm(){return _confirm.apply(this,arguments);}return confirm;}())},{key:"clearPaymentOption",value:function clearPaymentOption(){_NativeStripeSdkModule.default.clearEmbeddedPaymentOption(-1);}}]);}();var confirmHandlerCallback=null;var confirmationTokenHandlerCallback=null;var formSheetActionConfirmCallback=null;var customPaymentMethodConfirmCallback=null;var rowSelectionCallback=null;function createEmbeddedPaymentElement(_x2,_x3){return _createEmbeddedPaymentElement.apply(this,arguments);}function _createEmbeddedPaymentElement(){_createEmbeddedPaymentElement=(0,_asyncToGenerator2.default)(function*(intentConfig,configuration){setupConfirmAndSelectionHandlers(intentConfig,configuration);yield _NativeStripeSdkModule.default.createEmbeddedPaymentElement(intentConfig,configuration);return new EmbeddedPaymentElement();});return _createEmbeddedPaymentElement.apply(this,arguments);}function setupConfirmAndSelectionHandlers(intentConfig,configuration){var _configuration$formSh,_configuration$rowSel;var confirmHandler=intentConfig.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref){var paymentMethod=_ref.paymentMethod,shouldSavePaymentMethod=_ref.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}var confirmationTokenConfirmHandler=intentConfig.confirmationTokenConfirmHandler;if(confirmationTokenConfirmHandler){var _confirmationTokenHan;(_confirmationTokenHan=confirmationTokenHandlerCallback)==null||_confirmationTokenHan.remove();confirmationTokenHandlerCallback=(0,_events.addListener)('onConfirmationTokenHandlerCallback',function(_ref2){var confirmationToken=_ref2.confirmationToken;confirmationTokenConfirmHandler(confirmationToken,_NativeStripeSdkModule.default.confirmationTokenCreationCallback);});}if(((_configuration$formSh=configuration.formSheetAction)==null?void 0:_configuration$formSh.type)==='confirm'){var confirmFormSheetHandler=configuration.formSheetAction.onFormSheetConfirmComplete;if(confirmFormSheetHandler){var _formSheetActionConfi;(_formSheetActionConfi=formSheetActionConfirmCallback)==null||_formSheetActionConfi.remove();formSheetActionConfirmCallback=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){confirmFormSheetHandler(result);});}}if(configuration.customPaymentMethodConfiguration){var customPaymentMethodHandler=configuration.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _customPaymentMethodC;(_customPaymentMethodC=customPaymentMethodConfirmCallback)==null||_customPaymentMethodC.remove();customPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref3){var customPaymentMethod=_ref3.customPaymentMethod,billingDetails=_ref3.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(result){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(result);});});}}if(((_configuration$rowSel=configuration.rowSelectionBehavior)==null?void 0:_configuration$rowSel.type)==='immediateAction'){var rowSelectionHandler=configuration.rowSelectionBehavior.onSelectPaymentOption;if(rowSelectionHandler){var _rowSelectionCallback;(_rowSelectionCallback=rowSelectionCallback)==null||_rowSelectionCallback.remove();rowSelectionCallback=(0,_events.addListener)('embeddedPaymentElementRowSelectionImmediateAction',function(){rowSelectionHandler();});}}}function useEmbeddedPaymentElement(intentConfig,configuration){var _this=this;var isAndroid=_reactNative.Platform.OS==='android';var elementRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),element=_useState2[0],setElement=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),paymentOption=_useState4[0],setPaymentOption=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),height=_useState6[0],setHeight=_useState6[1];var viewRef=(0,_react.useRef)(null);var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),loadingError=_useState8[0],setLoadingError=_useState8[1];var isLoaded=(0,_react.useMemo)(function(){return height!==undefined&&height>1;},[height]);function getElementOrThrow(ref){if(!ref.current){throw new Error('EmbeddedPaymentElement is not ready yet – wait until it finishes loading before calling this API.');}return ref.current;}(0,_react.useEffect)(function(){var active=true;(0,_asyncToGenerator2.default)(function*(){var el=yield createEmbeddedPaymentElement(intentConfig,configuration);if(!active)return;elementRef.current=el;setElement(el);})();return function(){active=false;elementRef.current=null;setElement(null);};},[intentConfig,configuration,viewRef,isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdatePaymentOption',function(_ref5){var opt=_ref5.paymentOption;return setPaymentOption(opt!=null?opt:null);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdateHeight',function(_ref6){var h=_ref6.height;if(h>0||isAndroid&&h===0){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);}});return function(){return sub.remove();};},[isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementLoadingFailed',function(nativeError){setLoadingError(new Error(nativeError.message));});return function(){return sub.remove();};},[]);var embeddedPaymentElementView=(0,_react.useMemo)(function(){if(isAndroid&&configuration&&intentConfig){return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:[{width:'100%',height:height}],configuration:configuration,intentConfiguration:intentConfig});}if(!element)return null;return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:{width:'100%',height:height},configuration:configuration,intentConfiguration:intentConfig});},[configuration,element,height,intentConfig,isAndroid]);var confirm=(0,_react.useCallback)(function(){var currentRef=viewRef.current;if(isAndroid){if(currentRef){var promise=new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){sub.remove();resolve(result);});});_NativeEmbeddedPaymentElement.Commands.confirm(currentRef);return promise;}else{return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}}return getElementOrThrow(elementRef).confirm();},[isAndroid]);var update=(0,_react.useCallback)(function(cfg){if(isAndroid){var currentRef=viewRef.current;if(currentRef){return new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementUpdateComplete',function(result){sub.remove();resolve(result);});_NativeEmbeddedPaymentElement.Commands.update(currentRef,JSON.stringify(cfg));});}return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}return getElementOrThrow(elementRef).update(cfg);},[isAndroid]);var clearPaymentOption=(0,_react.useCallback)(function(){if(isAndroid){var tag=(0,_reactNative.findNodeHandle)(viewRef.current);if(tag==null){return Promise.reject(new Error('Unable to find Android view handle'));}return _NativeStripeSdkModule.default.clearEmbeddedPaymentOption(tag);}getElementOrThrow(elementRef).clearPaymentOption();return Promise.resolve();},[isAndroid]);return{embeddedPaymentElementView:embeddedPaymentElementView,paymentOption:paymentOption,confirm:confirm,update:update,clearPaymentOption:clearPaymentOption,loadingError:loadingError,isLoaded:isLoaded};}
2
2
  //# sourceMappingURL=EmbeddedPaymentElement.js.map
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.RowStyle=exports.PaymentMethodLayout=exports.NavigationBarStyle=exports.LinkDisplay=exports.CustomPaymentMethodResultStatus=exports.CollectionMode=exports.CardFundingType=exports.CardBrandCategory=exports.CardBrandAcceptanceFilter=exports.CaptureMethod=exports.AddressCollectionMode=void 0;var LinkDisplay=exports.LinkDisplay=function(LinkDisplay){LinkDisplay["AUTOMATIC"]="automatic";LinkDisplay["NEVER"]="never";return LinkDisplay;}({});var NavigationBarStyle=exports.NavigationBarStyle=function(NavigationBarStyle){NavigationBarStyle["Plain"]="plain";NavigationBarStyle["Glass"]="glass";return NavigationBarStyle;}({});var RowStyle=exports.RowStyle=function(RowStyle){RowStyle["FlatWithRadio"]="flatWithRadio";RowStyle["FloatingButton"]="floatingButton";RowStyle["FlatWithCheckmark"]="flatWithCheckmark";RowStyle["FlatWithDisclosure"]="flatWithDisclosure";return RowStyle;}({});var CollectionMode=exports.CollectionMode=function(CollectionMode){CollectionMode["AUTOMATIC"]="automatic";CollectionMode["NEVER"]="never";CollectionMode["ALWAYS"]="always";return CollectionMode;}({});var AddressCollectionMode=exports.AddressCollectionMode=function(AddressCollectionMode){AddressCollectionMode["AUTOMATIC"]="automatic";AddressCollectionMode["NEVER"]="never";AddressCollectionMode["FULL"]="full";return AddressCollectionMode;}({});var CaptureMethod=exports.CaptureMethod=function(CaptureMethod){CaptureMethod["Automatic"]="Automatic";CaptureMethod["Manual"]="Manual";CaptureMethod["AutomaticAsync"]="AutomaticAsync";return CaptureMethod;}({});var PaymentMethodLayout=exports.PaymentMethodLayout=function(PaymentMethodLayout){PaymentMethodLayout["Horizontal"]="Horizontal";PaymentMethodLayout["Vertical"]="Vertical";PaymentMethodLayout["Automatic"]="Automatic";return PaymentMethodLayout;}({});var CardFundingType=exports.CardFundingType=function(CardFundingType){CardFundingType["Debit"]="debit";CardFundingType["Credit"]="credit";CardFundingType["Prepaid"]="prepaid";CardFundingType["Unknown"]="unknown";return CardFundingType;}({});var CardBrandCategory=exports.CardBrandCategory=function(CardBrandCategory){CardBrandCategory["Visa"]="visa";CardBrandCategory["Mastercard"]="mastercard";CardBrandCategory["Amex"]="amex";CardBrandCategory["Discover"]="discover";return CardBrandCategory;}({});var CardBrandAcceptanceFilter=exports.CardBrandAcceptanceFilter=function(CardBrandAcceptanceFilter){CardBrandAcceptanceFilter["All"]="all";CardBrandAcceptanceFilter["Allowed"]="allowed";CardBrandAcceptanceFilter["Disallowed"]="disallowed";return CardBrandAcceptanceFilter;}({});var CustomPaymentMethodResultStatus=exports.CustomPaymentMethodResultStatus=function(CustomPaymentMethodResultStatus){CustomPaymentMethodResultStatus["Completed"]="completed";CustomPaymentMethodResultStatus["Canceled"]="canceled";CustomPaymentMethodResultStatus["Failed"]="failed";return CustomPaymentMethodResultStatus;}({});
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.TermsDisplay=exports.RowStyle=exports.PaymentMethodLayout=exports.NavigationBarStyle=exports.LinkDisplay=exports.CustomPaymentMethodResultStatus=exports.CollectionMode=exports.CardFundingType=exports.CardBrandCategory=exports.CardBrandAcceptanceFilter=exports.CaptureMethod=exports.AddressCollectionMode=void 0;var LinkDisplay=exports.LinkDisplay=function(LinkDisplay){LinkDisplay["AUTOMATIC"]="automatic";LinkDisplay["NEVER"]="never";return LinkDisplay;}({});var TermsDisplay=exports.TermsDisplay=function(TermsDisplay){TermsDisplay["AUTOMATIC"]="automatic";TermsDisplay["NEVER"]="never";return TermsDisplay;}({});var NavigationBarStyle=exports.NavigationBarStyle=function(NavigationBarStyle){NavigationBarStyle["Plain"]="plain";NavigationBarStyle["Glass"]="glass";return NavigationBarStyle;}({});var RowStyle=exports.RowStyle=function(RowStyle){RowStyle["FlatWithRadio"]="flatWithRadio";RowStyle["FloatingButton"]="floatingButton";RowStyle["FlatWithCheckmark"]="flatWithCheckmark";RowStyle["FlatWithDisclosure"]="flatWithDisclosure";return RowStyle;}({});var CollectionMode=exports.CollectionMode=function(CollectionMode){CollectionMode["AUTOMATIC"]="automatic";CollectionMode["NEVER"]="never";CollectionMode["ALWAYS"]="always";return CollectionMode;}({});var AddressCollectionMode=exports.AddressCollectionMode=function(AddressCollectionMode){AddressCollectionMode["AUTOMATIC"]="automatic";AddressCollectionMode["NEVER"]="never";AddressCollectionMode["FULL"]="full";return AddressCollectionMode;}({});var CaptureMethod=exports.CaptureMethod=function(CaptureMethod){CaptureMethod["Automatic"]="Automatic";CaptureMethod["Manual"]="Manual";CaptureMethod["AutomaticAsync"]="AutomaticAsync";return CaptureMethod;}({});var PaymentMethodLayout=exports.PaymentMethodLayout=function(PaymentMethodLayout){PaymentMethodLayout["Horizontal"]="Horizontal";PaymentMethodLayout["Vertical"]="Vertical";PaymentMethodLayout["Automatic"]="Automatic";return PaymentMethodLayout;}({});var CardFundingType=exports.CardFundingType=function(CardFundingType){CardFundingType["Debit"]="debit";CardFundingType["Credit"]="credit";CardFundingType["Prepaid"]="prepaid";CardFundingType["Unknown"]="unknown";return CardFundingType;}({});var CardBrandCategory=exports.CardBrandCategory=function(CardBrandCategory){CardBrandCategory["Visa"]="visa";CardBrandCategory["Mastercard"]="mastercard";CardBrandCategory["Amex"]="amex";CardBrandCategory["Discover"]="discover";return CardBrandCategory;}({});var CardBrandAcceptanceFilter=exports.CardBrandAcceptanceFilter=function(CardBrandAcceptanceFilter){CardBrandAcceptanceFilter["All"]="all";CardBrandAcceptanceFilter["Allowed"]="allowed";CardBrandAcceptanceFilter["Disallowed"]="disallowed";return CardBrandAcceptanceFilter;}({});var CustomPaymentMethodResultStatus=exports.CustomPaymentMethodResultStatus=function(CustomPaymentMethodResultStatus){CustomPaymentMethodResultStatus["Completed"]="completed";CustomPaymentMethodResultStatus["Canceled"]="canceled";CustomPaymentMethodResultStatus["Failed"]="failed";return CustomPaymentMethodResultStatus;}({});
2
2
  //# sourceMappingURL=PaymentSheet.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["LinkDisplay","exports","NavigationBarStyle","RowStyle","CollectionMode","AddressCollectionMode","CaptureMethod","PaymentMethodLayout","CardFundingType","CardBrandCategory","CardBrandAcceptanceFilter","CustomPaymentMethodResultStatus"],"sourceRoot":"../../../src","sources":["types/PaymentSheet.ts"],"mappings":"sWAwLY,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,UAAXA,WAAW,EAAXA,WAAW,0BAAXA,WAAW,wBAAX,CAAAA,WAAW,UA0DX,CAAAE,kBAAkB,CAAAD,OAAA,CAAAC,kBAAA,UAAlBA,kBAAkB,EAAlBA,kBAAkB,kBAAlBA,kBAAkB,wBAAlB,CAAAA,kBAAkB,UA2JlB,CAAAC,QAAQ,CAAAF,OAAA,CAAAE,QAAA,UAARA,QAAQ,EAARA,QAAQ,kCAARA,QAAQ,oCAARA,QAAQ,0CAARA,QAAQ,kDAAR,CAAAA,QAAQ,UAkJR,CAAAC,cAAc,CAAAH,OAAA,CAAAG,cAAA,UAAdA,cAAc,EAAdA,cAAc,0BAAdA,cAAc,kBAAdA,cAAc,0BAAd,CAAAA,cAAc,UASd,CAAAC,qBAAqB,CAAAJ,OAAA,CAAAI,qBAAA,UAArBA,qBAAqB,EAArBA,qBAAqB,0BAArBA,qBAAqB,kBAArBA,qBAAqB,sBAArB,CAAAA,qBAAqB,UAyErB,CAAAC,aAAa,CAAAL,OAAA,CAAAK,aAAA,UAAbA,aAAa,EAAbA,aAAa,0BAAbA,aAAa,oBAAbA,aAAa,0CAAb,CAAAA,aAAa,UAgDb,CAAAC,mBAAmB,CAAAN,OAAA,CAAAM,mBAAA,UAAnBA,mBAAmB,EAAnBA,mBAAmB,4BAAnBA,mBAAmB,wBAAnBA,mBAAmB,gCAAnB,CAAAA,mBAAmB,UAuBnB,CAAAC,eAAe,CAAAP,OAAA,CAAAO,eAAA,UAAfA,eAAe,EAAfA,eAAe,kBAAfA,eAAe,oBAAfA,eAAe,sBAAfA,eAAe,4BAAf,CAAAA,eAAe,UAwBf,CAAAC,iBAAiB,CAAAR,OAAA,CAAAQ,iBAAA,UAAjBA,iBAAiB,EAAjBA,iBAAiB,gBAAjBA,iBAAiB,4BAAjBA,iBAAiB,gBAAjBA,iBAAiB,8BAAjB,CAAAA,iBAAiB,UAejB,CAAAC,yBAAyB,CAAAT,OAAA,CAAAS,yBAAA,UAAzBA,yBAAyB,EAAzBA,yBAAyB,cAAzBA,yBAAyB,sBAAzBA,yBAAyB,kCAAzB,CAAAA,yBAAyB,UA+CzB,CAAAC,+BAA+B,CAAAV,OAAA,CAAAU,+BAAA,UAA/BA,+BAA+B,EAA/BA,+BAA+B,0BAA/BA,+BAA+B,wBAA/BA,+BAA+B,0BAA/B,CAAAA,+BAA+B","ignoreList":[]}
1
+ {"version":3,"names":["LinkDisplay","exports","TermsDisplay","NavigationBarStyle","RowStyle","CollectionMode","AddressCollectionMode","CaptureMethod","PaymentMethodLayout","CardFundingType","CardBrandCategory","CardBrandAcceptanceFilter","CustomPaymentMethodResultStatus"],"sourceRoot":"../../../src","sources":["types/PaymentSheet.ts"],"mappings":"2XAqMY,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,UAAXA,WAAW,EAAXA,WAAW,0BAAXA,WAAW,wBAAX,CAAAA,WAAW,UAUX,CAAAE,YAAY,CAAAD,OAAA,CAAAC,YAAA,UAAZA,YAAY,EAAZA,YAAY,0BAAZA,YAAY,wBAAZ,CAAAA,YAAY,UA0DZ,CAAAC,kBAAkB,CAA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+B,CAAAX,OAAA,CAAAW,+BAAA,UAA/BA,+BAA+B,EAA/BA,+BAA+B,0BAA/BA,+BAA+B,wBAA/BA,+BAA+B,0BAA/B,CAAAA,+BAA+B","ignoreList":[]}
@@ -50,7 +50,8 @@ export declare function useOnramp(): {
50
50
  }>;
51
51
  /**
52
52
  * Presents UI to verify KYC information for the current Link user.
53
- * Requires the user to be authenticated with prior calls to either `authenticateUser` or `authorize`, and also requires prior KYC info attachement via `attachKycInfo`.
53
+ * Requires the user to be authenticated with prior calls to either `authenticateUserWithToken` or `authorize`,
54
+ * and also requires prior KYC info attachement via `attachKycInfo`.
54
55
  *
55
56
  * @param updatedAddress: An optional updated address. Specify this parameter if the user has elected to change the address after a prior call to this API returned `UpdateAddress`. Otherwise, specify `null` to show the user's existing KYC information on the presented flow.
56
57
  *
@@ -66,13 +67,6 @@ export declare function useOnramp(): {
66
67
  updatePhoneNumber: (phone: string) => Promise<{
67
68
  error?: StripeError<OnrampError>;
68
69
  }>;
69
- /**
70
- * Presents Link UI to authenticate an existing Link user.
71
- * `hasLinkAccount` must be called before this.
72
- *
73
- * @returns Promise that resolves to an object with customerId or error
74
- */
75
- authenticateUser: () => Promise<Onramp.AuthenticateUserResult>;
76
70
  /**
77
71
  * Authenticates the user with an encrypted Link auth token.
78
72
  * This token can be obtained by exchanging a previously consented Link OAuth token from your backend using Stripe's /v1/link/auth_token API. The response of this backend API includes information on token expiry.
@@ -1 +1 @@
1
- {"version":3,"file":"useOnramp.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useOnramp.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAKrD;;GAEG;AACH,wBAAgB,SAAS;IA+KrB;;;;;OAKG;wBAjL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AAkB,KACxB,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAAC;IAsJ3C;;;;OAIG;kBApJiC,OAAO,CAAC;QAC5C,KAAK,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;KAClC,CAAC;IAqJA;;;;;;OAMG;0BAvJyB,WAAW,CAAC,WAAW,CAAC,KAAG,OAAO;EA0JjE"}
@@ -11,7 +11,6 @@ export interface Spec extends TurboModule {
11
11
  attachKycInfo(kycInfo: UnsafeObject<Onramp.KycInfo>): Promise<Onramp.VoidResult>;
12
12
  presentKycInfoVerification: (updatedAddress: UnsafeObject<Address> | null) => Promise<Onramp.VerifyKycResult>;
13
13
  updatePhoneNumber(phone: string): Promise<Onramp.VoidResult>;
14
- authenticateUser(): Promise<Onramp.AuthenticateUserResult>;
15
14
  authenticateUserWithToken(linkAuthTokenClientSecret: string): Promise<Onramp.VoidResult>;
16
15
  verifyIdentity(): Promise<Onramp.VoidResult>;
17
16
  collectPaymentMethod(paymentMethod: string, platformPayParams: UnsafeObject<any>): Promise<Onramp.CollectPaymentMethodResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeOnrampSdkModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeOnrampSdkModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,eAAe,CACb,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,GACzC,O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CAAC;CACtC;;AAED,wBAAmE"}
@@ -190,18 +190,6 @@ export type RegisterLinkUserResult = {
190
190
  /** Present if registration failed with an error. */
191
191
  error: StripeError<OnrampError>;
192
192
  };
193
- /**
194
- * Result of authenticating an existing Link user.
195
- */
196
- export type AuthenticateUserResult = {
197
- /** The crypto customer ID after successful authentication. */
198
- customerId: string;
199
- error?: undefined;
200
- } | {
201
- customerId?: undefined;
202
- /** Present if authentication failed with an error. */
203
- error: StripeError<OnrampError>;
204
- };
205
193
  /**
206
194
  * Describes the payment method currently selected by the user.
207
195
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Onramp.d.ts","sourceRoot":"","sources":["../../../../src/types/Onramp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,sDAAsD;IACtD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sEAAsE;IACtE,UAAU,EAAE,cAAc,CAAC;IAC3B,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,yCAAyC;IACzC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,2BAA2B;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,gBAAgB,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAE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