@stripe/stripe-react-native 0.60.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/gradle.properties +1 -1
- package/android/src/onramp/java/com/reactnativestripesdk/OnrampSdkModule.kt +2 -36
- package/ios/Mappers.swift +56 -37
- package/ios/StripeSdkImpl.swift +11 -4
- package/ios/StripeSwiftInterop.h +1 -1
- package/lib/commonjs/components/AddToWalletButton.js +1 -1
- package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
- package/lib/commonjs/components/AddressSheet.js +1 -1
- package/lib/commonjs/components/AddressSheet.js.map +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
- package/lib/commonjs/components/CardField.js +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/CardForm.js +1 -1
- package/lib/commonjs/components/CardForm.js.map +1 -1
- package/lib/commonjs/components/PlatformPayButton.js +1 -1
- package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
- package/lib/commonjs/components/StripeContainer.js +1 -1
- package/lib/commonjs/components/StripeContainer.js.map +1 -1
- package/lib/commonjs/connect/Components.js +1 -1
- package/lib/commonjs/connect/Components.js.map +1 -1
- package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
- package/lib/commonjs/connect/ConnectComponentsProvider.js.map +1 -1
- package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
- package/lib/commonjs/connect/EmbeddedComponent.js.map +1 -1
- package/lib/commonjs/connect/ModalCloseButton.js +1 -1
- package/lib/commonjs/connect/ModalCloseButton.js.map +1 -1
- package/lib/commonjs/connect/NavigationBar.js +1 -1
- package/lib/commonjs/connect/NavigationBar.js.map +1 -1
- package/lib/commonjs/helpers.js +1 -1
- package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
- package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
- package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
- package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
- package/lib/commonjs/specs/NativeCardField.js +1 -1
- package/lib/commonjs/specs/NativeCardField.js.map +1 -1
- package/lib/commonjs/specs/NativeCardForm.js +1 -1
- package/lib/commonjs/specs/NativeCardForm.js.map +1 -1
- package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
- package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
- package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js.map +1 -1
- package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
- package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
- package/lib/commonjs/specs/NativePaymentMethodMessagingElement.js +1 -1
- package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
- package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
- package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/commonjs/types/Onramp.js +1 -1
- package/lib/commonjs/types/Onramp.js.map +1 -1
- package/lib/module/components/AddToWalletButton.js +1 -1
- package/lib/module/components/AddToWalletButton.js.map +1 -1
- package/lib/module/components/AddressSheet.js +1 -1
- package/lib/module/components/AddressSheet.js.map +1 -1
- package/lib/module/components/AuBECSDebitForm.js +1 -1
- package/lib/module/components/AuBECSDebitForm.js.map +1 -1
- package/lib/module/components/CardField.js +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/CardForm.js +1 -1
- package/lib/module/components/CardForm.js.map +1 -1
- package/lib/module/components/PlatformPayButton.js +1 -1
- package/lib/module/components/PlatformPayButton.js.map +1 -1
- package/lib/module/components/StripeContainer.js +1 -1
- package/lib/module/components/StripeContainer.js.map +1 -1
- package/lib/module/connect/Components.js +1 -1
- package/lib/module/connect/Components.js.map +1 -1
- package/lib/module/connect/ConnectComponentsProvider.js +1 -1
- package/lib/module/connect/ConnectComponentsProvider.js.map +1 -1
- package/lib/module/connect/EmbeddedComponent.js +1 -1
- package/lib/module/connect/EmbeddedComponent.js.map +1 -1
- package/lib/module/connect/ModalCloseButton.js +1 -1
- package/lib/module/connect/ModalCloseButton.js.map +1 -1
- package/lib/module/connect/NavigationBar.js +1 -1
- package/lib/module/connect/NavigationBar.js.map +1 -1
- package/lib/module/helpers.js +1 -1
- package/lib/module/specs/NativeAddToWalletButton.js +1 -1
- package/lib/module/specs/NativeAddressSheet.js +1 -1
- package/lib/module/specs/NativeApplePayButton.js +1 -1
- package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
- package/lib/module/specs/NativeCardField.js +1 -1
- package/lib/module/specs/NativeCardField.js.map +1 -1
- package/lib/module/specs/NativeCardForm.js +1 -1
- package/lib/module/specs/NativeCardForm.js.map +1 -1
- package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
- package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
- package/lib/module/specs/NativeEmbeddedPaymentElement.js.map +1 -1
- package/lib/module/specs/NativeGooglePayButton.js +1 -1
- package/lib/module/specs/NativeNavigationBar.js +1 -1
- package/lib/module/specs/NativePaymentMethodMessagingElement.js +1 -1
- package/lib/module/specs/NativeStripeContainer.js +1 -1
- package/lib/module/types/EmbeddedPaymentElement.js +1 -1
- package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/module/types/Onramp.js +1 -1
- package/lib/module/types/Onramp.js.map +1 -1
- package/lib/typescript/src/types/Onramp.d.ts +11 -10
- package/lib/typescript/src/types/Onramp.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/types/Onramp.ts +10 -9
- 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.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/
|
|
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/davidestes/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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_AnalyticsClient","_functions","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConnectInstance","initParams","_classCallCheck2","_createClass2","key","value","update","options","_this$onUpdate","onUpdate","loadConnectAndInitialize","exports","ConnectComponentsContext","React","createContext","displayName","ConnectComponentsProvider","_ref","children","connectInstance","Error","_useState","useState","appearance","_useState2","_slicedToArray2","setAppearance","_useState3","locale","_useState4","setLocale","analyticsClient","useMemo","AnalyticsClient","Constants","SYSTEM_INFO","jsx","Provider","useConnectComponents","context","useContext"],"sourceRoot":"../../../src","sources":["connect/ConnectComponentsProvider.tsx"],"mappings":"qgBAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAOA,IAAAC,gBAAA,CAAAD,OAAA,gCACA,IAAAE,UAAA,CAAAF,OAAA,iBAAyC,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,KAAA,MAAAC,YAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_AnalyticsClient","_functions","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConnectInstance","initParams","_classCallCheck2","_createClass2","key","value","update","options","_this$onUpdate","onUpdate","loadConnectAndInitialize","exports","ConnectComponentsContext","React","createContext","displayName","ConnectComponentsProvider","_ref","children","connectInstance","Error","_useState","useState","appearance","_useState2","_slicedToArray2","setAppearance","_useState3","locale","_useState4","setLocale","analyticsClient","useMemo","AnalyticsClient","Constants","SYSTEM_INFO","jsx","Provider","useConnectComponents","context","useContext"],"sourceRoot":"../../../src","sources":["connect/ConnectComponentsProvider.tsx"],"mappings":"qgBAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAOA,IAAAC,gBAAA,CAAAD,OAAA,gCACA,IAAAE,UAAA,CAAAF,OAAA,iBAAyC,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,KAAA,MAAAC,YAAA,mGAAAN,wBAAAO,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAT,uBAAA,UAAAA,wBAAAO,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,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B,OAAO,CAACqB,MAAM,CAAE,CAClBE,SAAS,CAACvB,OAAO,CAACqB,MAAM,CAAC,CAC3B,CACF,CAAC,CACH,CAEA,GAAM,CAAAvB,KAAK,CAAG,GAAA2B,cAAO,EACnB,iBAAO,CAAEb,eAAe,CAAfA,eAAe,CAAES,MAAM,CAANA,MAAM,CAAEL,UAAU,CAAVA,UAAU,CAAEQ,eAAe,CAAfA,eAAgB,CAAC,EAAC,CAChE,CAACZ,eAAe,CAAES,MAAM,CAAEL,UAAU,CAAEQ,eAAe,CACvD,CAAC,CAED,MACE,GAAAtD,WAAA,CAAA2D,GAAA,EAACxB,wBAAwB,CAACyB,QAAQ,EAAChC,KAAK,CAAEA,KAAM,CAAAa,QAAA,CAC7CA,QAAQ,CACwB,CAAC,CAExC,CAAC,CAEM,GAAM,CAAAoB,oBAAoB,CAAA3B,OAAA,CAAA2B,oBAAA,CAAG,QAAvB,CAAAA,oBAAoBA,CAAA,CAAmC,CAClE,GAAM,CAAAC,OAAO,CAAG1B,cAAK,CAAC2B,UAAU,CAAC5B,wBAAwB,CAAC,CAC1D,GAAI,CAAC2B,OAAO,CAAE,CACZ,KAAM,IAAI,CAAAnB,KAAK,CACb,yHACF,CAAC,CACH,CACA,MAAO,CAAAmB,OAAO,CAChB,CAAC","ignoreList":[]}
|
|
@@ -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/
|
|
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/davidestes/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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_package","_interopRequireDefault","_NativeStripeSdkModule","_events","_ConnectComponentsProvider","_ComponentAnalyticsClient","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEVELOPMENT_MODE","DEVELOPMENT_URL","Platform","OS","PRODUCTION_URL","BASE_URL","sdkVersion","pjson","version","POLLING_INTERVAL_MS","URL_DEDUPLICATION_TIMEOUT_MS","DEEP_LINK_GRACE_PERIOD_MS","test","Error","platformPrefix","select","ios","android","userAgent","Version","join","ALLOWED_STRIPE_HOSTS","concat","_toConsumableArray2","EmbeddedComponent","props","_appearance$variables","_useState","useState","_useState2","_slicedToArray2","dynamicWebview","setDynamicWebview","pendingAuthWebViewPromises","useRef","Map","pendingFinancialConnectionsPromise","recentlyHandledUrls","Set","loadWebViewComponent","useCallback","_asyncToGenerator2","WebView","mod","err","console","error","useEffect","appState","AppState","currentState","pollInterval","setInterval","current","size","pendingUrls","NativeStripeSdk","pollAndClearPendingStripeConnectUrls","length","forEach","url","startsWith","add","setTimeout","delete","firstEntry","entries","next","value","_firstEntry","id","promiseData","timeoutId","clearTimeout","callback","authWebViewDeepLinkHandled","catch","_error","clearInterval","subscription","addEventListener","nextAppState","match","stillPending","_pendingFinancialConn","promises","_id","clear","cleanup","remove","_useConnectComponents","useConnectComponents","connectInstance","appearance","locale","analyticsClient","_ref3","initParams","fonts","publishableKey","fetchClientSecret","overrides","component","componentProps","onLoadError","onLoaderStart","onPageDidLoad","callbacks","style","componentAnalytics","useMemo","ComponentAnalyticsClient","platformId","merchantId","livemode","hashParams","publicKey","merchantIdOverride","platformIdOverride","apiKeyOverride","apiKey","livemodeOverride","hash","filter","_ref4","_ref5","_","map","_ref6","_ref7","key","encodeURIComponent","connectURL","source","uri","ref","hasTriedSourceReload","_useState3","_useState4","prevAppearance","setPrevAppearance","_useState5","_useState6","prevLocale","setPrevLocale","_ref$current","patchedAppearance","withDefaultFontFamily","injectJavaScript","JSON","stringify","_useState7","_useState8","prevComponentProps","setPrevComponentProps","_ref8","_ref$current2","_ref9","setter","handleUnexpectedError","errorMessage","message","String","WebViewComponent","timer","_ref$current3","reload","undefined","logComponentCreated","_useState9","_useState0","hasBeenViewed","setHasBeenViewed","handleLayout","logComponentViewed","handleAuthWebViewResult","resultUrl","_ref$current4","handleFinancialConnectionsResult","result","_ref$current5","_result$token","_result$error","financialConnectionsSession","session","accounts","token","onMessageCallback","_ref0","event","parse","nativeEvent","data","logDeserializeMessageError","type","_ref$current6","clientSecret","debug","_message$data","pageViewId","logComponentWebPageLoaded","logComponentLoaded","messageData","connectedAccountId","code","eventListener","__DEV__","addListener","fcEvent","name","metadata","_eventListener","collectFinancialConnectionsAccounts","then","_ref1","localizedMessage","unexpectedError","onCloseWebView","_ref10","functionName","charAt","toLowerCase","substring","logUnrecognizedSetter","_ref11","isValidUrl","logAuthenticatedWebViewOpened","openAuthenticatedWebView","_result$url","logAuthenticatedWebViewRedirected","logAuthenticatedWebViewCanceled","authId","logAuthenticatedWebViewError","_x","apply","arguments","onShouldStartLoadWithRequest","navigationType","isCsvExportUrl","downloadAndShareFile","success","warn","some","host","includes","Linking","openURL","backgroundColor","variables","colorBackground","mergedStyle","jsx","webviewDebuggingEnabled","injectedJavaScriptObject","initComponentProps","appInfo","applicationId","injectedJavaScriptBeforeContentLoaded","onMessage","onLayout","mediaCapturePermissionGrantType","allowsInlineMediaPlayback","mediaPlaybackRequiresUserAction","DEFAULT_FONT","_appearance$variables2","fontFamily","assign","parsedUrl","URL","protocol","_unused","hostname","pathname","_unused2"],"sourceRoot":"../../../src","sources":["connect/EmbeddedComponent.tsx"],"mappings":"0dAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAOA,IAAAC,YAAA,CAAAD,OAAA,iBAWA,IAAAE,QAAA,CAAAC,sBAAA,CAAAH,OAAA,2BACA,IAAAI,sBAAA,CAAAD,sBAAA,CAAAH,OAAA,oCACA,IAAAK,OAAA,CAAAL,OA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C3B,QAAQ,CAAC,qBAAqB,CAAC,EAClDuB,SAAS,CAACK,QAAQ,CAAC5B,QAAQ,CAAC,qBAAqB,CAAC,CAEtD,CAAE,MAAA6B,QAAA,CAAM,CACN,MAAO,MAAK,CACd,CACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_package","_interopRequireDefault","_NativeStripeSdkModule","_events","_ConnectComponentsProvider","_ComponentAnalyticsClient","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEVELOPMENT_MODE","DEVELOPMENT_URL","Platform","OS","PRODUCTION_URL","BASE_URL","sdkVersion","pjson","version","POLLING_INTERVAL_MS","URL_DEDUPLICATION_TIMEOUT_MS","DEEP_LINK_GRACE_PERIOD_MS","test","Error","platformPrefix","select","ios","android","userAgent","Version","join","ALLOWED_STRIPE_HOSTS","concat","_toConsumableArray2","EmbeddedComponent","props","_appearance$variables","_useState","useState","_useState2","_slicedToArray2","dynamicWebview","setDynamicWebview","pendingAuthWebViewPromises","useRef","Map","pendingFinancialConnectionsPromise","recentlyHandledUrls","Set","loadWebViewComponent","useCallback","_asyncToGenerator2","WebView","mod","err","console","error","useEffect","appState","AppState","currentState","pollInterval","setInterval","current","size","pendingUrls","NativeStripeSdk","pollAndClearPendingStripeConnectUrls","length","forEach","url","startsWith","add","setTimeout","delete","firstEntry","entries","next","value","_firstEntry","id","promiseData","timeoutId","clearTimeout","callback","authWebViewDeepLinkHandled","catch","_error","clearInterval","subscription","addEventListener","nextAppState","match","stillPending","_pendingFinancialConn","promises","_id","clear","cleanup","remove","_useConnectComponents","useConnectComponents","connectInstance","appearance","locale","analyticsClient","_ref3","initParams","fonts","publishableKey","fetchClientSecret","overrides","component","componentProps","onLoadError","onLoaderStart","onPageDidLoad","callbacks","style","componentAnalytics","useMemo","ComponentAnalyticsClient","platformId","merchantId","livemode","hashParams","publicKey","merchantIdOverride","platformIdOverride","apiKeyOverride","apiKey","livemodeOverride","hash","filter","_ref4","_ref5","_","map","_ref6","_ref7","key","encodeURIComponent","connectURL","source","uri","ref","hasTriedSourceReload","_useState3","_useState4","prevAppearance","setPrevAppearance","_useState5","_useState6","prevLocale","setPrevLocale","_ref$current","patchedAppearance","withDefaultFontFamily","injectJavaScript","JSON","stringify","_useState7","_useState8","prevComponentProps","setPrevComponentProps","_ref8","_ref$current2","_ref9","setter","handleUnexpectedError","errorMessage","message","String","WebViewComponent","timer","_ref$current3","reload","undefined","logComponentCreated","_useState9","_useState0","hasBeenViewed","setHasBeenViewed","handleLayout","logComponentViewed","handleAuthWebViewResult","resultUrl","_ref$current4","handleFinancialConnectionsResult","result","_ref$current5","_result$token","_result$error","financialConnectionsSession","session","accounts","token","onMessageCallback","_ref0","event","parse","nativeEvent","data","logDeserializeMessageError","type","_ref$current6","clientSecret","debug","_message$data","pageViewId","logComponentWebPageLoaded","logComponentLoaded","messageData","connectedAccountId","code","eventListener","__DEV__","addListener","fcEvent","name","metadata","_eventListener","collectFinancialConnectionsAccounts","then","_ref1","localizedMessage","unexpectedError","onCloseWebView","_ref10","functionName","charAt","toLowerCase","substring","logUnrecognizedSetter","_ref11","isValidUrl","logAuthenticatedWebViewOpened","openAuthenticatedWebView","_result$url","logAuthenticatedWebViewRedirected","logAuthenticatedWebViewCanceled","authId","logAuthenticatedWebViewError","_x","apply","arguments","onShouldStartLoadWithRequest","navigationType","isCsvExportUrl","downloadAndShareFile","success","warn","some","host","includes","Linking","openURL","backgroundColor","variables","colorBackground","mergedStyle","jsx","webviewDebuggingEnabled","injectedJavaScriptObject","initComponentProps","appInfo","applicationId","injectedJavaScriptBeforeContentLoaded","onMessage","onLayout","mediaCapturePermissionGrantType","allowsInlineMediaPlayback","mediaPlaybackRequiresUserAction","DEFAULT_FONT","_appearance$variables2","fontFamily","assign","parsedUrl","URL","protocol","_unused","hostname","pathname","_unused2"],"sourceRoot":"../../../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K,QAAQ,CAC1E,CAAE,MAAAC,OAAA,CAAM,CACN,MAAO,MAAK,CACd,CACF,CAGA,QAAS,CAAAhC,cAAcA,CAAClL,GAAW,CAAW,CAC5C,GAAI,CACF,GAAM,CAAA+M,SAAS,CAAG,GAAI,CAAAC,GAAG,CAAChN,GAAG,CAAC,CAC9B,MACE,CAAA+M,SAAS,CAACI,QAAQ,CAAC3B,QAAQ,CAAC,qBAAqB,CAAC,EAClDuB,SAAS,CAACK,QAAQ,CAAC5B,QAAQ,CAAC,qBAAqB,CAAC,CAEtD,CAAE,MAAA6B,QAAA,CAAM,CACN,MAAO,MAAK,CACd,CACF","ignoreList":[]}
|
|
@@ -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/
|
|
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/davidestes/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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","_jsxFileName","size","hitSlop","top","bottom","left","right","ModalCloseButton","_ref","onPress","jsx","TouchableOpacity","accessibilityRole","style","styles","button","width","height","borderRadius","activeOpacity","children","Text","cross","fontSize","Math","round","StyleSheet","create","alignItems","justifyContent","lineHeight","undefined","includeFontPadding","textAlign"],"sourceRoot":"../../../src","sources":["connect/ModalCloseButton.tsx"],"mappings":"6KAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAAkE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","_jsxFileName","size","hitSlop","top","bottom","left","right","ModalCloseButton","_ref","onPress","jsx","TouchableOpacity","accessibilityRole","style","styles","button","width","height","borderRadius","activeOpacity","children","Text","cross","fontSize","Math","round","StyleSheet","create","alignItems","justifyContent","lineHeight","undefined","includeFontPadding","textAlign"],"sourceRoot":"../../../src","sources":["connect/ModalCloseButton.tsx"],"mappings":"6KAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAAkE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,iFAElE,GAAM,CAAAC,IAAI,CAAG,EAAE,CACf,GAAM,CAAAC,OAAO,CAAG,CAAEC,GAAG,CAAE,EAAE,CAAEC,MAAM,CAAE,EAAE,CAAEC,IAAI,CAAE,EAAE,CAAEC,KAAK,CAAE,EAAG,CAAC,CAM7C,QAAS,CAAAC,gBAAgBA,CAAAC,IAAA,CAAqC,IAAlC,CAAAC,OAAO,CAAAD,IAAA,CAAPC,OAAO,CAChD,MACE,GAAAV,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,gBAAgB,EACfF,OAAO,CAAEA,OAAQ,CACjBG,iBAAiB,CAAC,QAAQ,CAC1BV,OAAO,CAAEA,OAAQ,CACjBW,KAAK,CAAE,CACLC,MAAM,CAACC,MAAM,CACb,CACEC,KAAK,CAAEf,IAAI,CACXgB,MAAM,CAAEhB,IAAI,CACZiB,YAAY,CAAEjB,IAAI,CAAG,CACvB,CAAC,CACD,CACFkB,aAAa,CAAE,GAAI,CAAAC,QAAA,CAEnB,GAAArB,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAuB,IAAI,EAACR,KAAK,CAAE,CAACC,MAAM,CAACQ,KAAK,CAAE,CAAEC,QAAQ,CAAEC,IAAI,CAACC,KAAK,CAACxB,IAAI,CAAG,GAAG,CAAE,CAAC,CAAE,CAAAmB,QAAA,CAAC,MAEnE,CAAM,CAAC,CACS,CAAC,CAEvB,CAEA,GAAM,CAAAN,MAAM,CAAGY,uBAAU,CAACC,MAAM,CAAC,CAC/BZ,MAAM,CAAE,CACNa,UAAU,CAAE,QAAQ,CACpBC,cAAc,CAAE,QAClB,CAAC,CACDP,KAAK,CAAE,CACLQ,UAAU,CAAEC,SAAS,CACrBC,kBAAkB,CAAE,KAAK,CACzBC,SAAS,CAAE,QACb,CACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -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/
|
|
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/davidestes/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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_NativeNavigationBar","_interopRequireDefault","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NavigationBar","exports","forwardRef","_ref","ref","title","onCloseButtonPress","rest","_objectWithoutProperties2","jsx","assign","_event","undefined","displayName"],"sourceRoot":"../../../src","sources":["connect/NavigationBar.tsx"],"mappings":"yRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAEA,IAAAC,oBAAA,CAAAC,sBAAA,CAAAF,OAAA,kCAA+D,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,oCAAAC,KAAA,MAAAC,YAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_NativeNavigationBar","_interopRequireDefault","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NavigationBar","exports","forwardRef","_ref","ref","title","onCloseButtonPress","rest","_objectWithoutProperties2","jsx","assign","_event","undefined","displayName"],"sourceRoot":"../../../src","sources":["connect/NavigationBar.tsx"],"mappings":"yRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAEA,IAAAC,oBAAA,CAAAC,sBAAA,CAAAF,OAAA,kCAA+D,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,oCAAAC,KAAA,MAAAC,YAAA,uFAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,IAAAd,CAAA,aAAAc,EAAA,KAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,CAAAc,EAAA,KAAAP,CAAA,EAAAD,CAAA,CAAAW,MAAA,CAAAC,cAAA,GAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,CAAAc,EAAA,KAAAP,CAAA,CAAAK,GAAA,EAAAL,CAAA,CAAAM,GAAA,EAAAP,CAAA,CAAAE,CAAA,CAAAM,EAAA,CAAAP,CAAA,EAAAC,CAAA,CAAAM,EAAA,EAAAd,CAAA,CAAAc,EAAA,UAAAN,CAAA,IAAAR,CAAA,CAAAC,CAAA,GAOxD,GAAM,CAAAmB,aAAa,CAAAC,OAAA,CAAAD,aAAA,CAAG,GAAAE,iBAAU,EACrC,SAAAC,IAAA,CAAyCC,GAAG,CAAK,IAA9C,CAAAC,KAAK,CAAAF,IAAA,CAALE,KAAK,CAAEC,kBAAkB,CAAAH,IAAA,CAAlBG,kBAAkB,CAAKC,IAAI,IAAAC,yBAAA,CAAAlB,OAAA,EAAAa,IAAA,CAAA1B,SAAA,EACnC,MACE,GAAAD,WAAA,CAAAiC,GAAA,EAACnC,oBAAA,CAAAgB,OAAmB,CAAAO,MAAA,CAAAa,MAAA,EAClBN,GAAG,CAAEA,GAAI,CACTC,KAAK,CAAEA,KAAM,CACbC,kBAAkB,CAChBA,kBAAkB,CACd,SAACK,MAAM,CAAK,CACVL,kBAAkB,CAAC,CAAC,CACtB,CAAC,CACDM,SACL,EACGL,IAAI,CACT,CAAC,CAEN,CACF,CAAC,CAEDP,aAAa,CAACa,WAAW,CAAG,eAAe","ignoreList":[]}
|
package/lib/commonjs/helpers.js
CHANGED
|
@@ -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/
|
|
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/davidestes/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.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/
|
|
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/davidestes/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/
|
|
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/davidestes/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/
|
|
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/davidestes/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/
|
|
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/davidestes/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/
|
|
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/davidestes/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/davidestes/stripe/stripe-react-native/src/specs/NativeCardField.ts 7:0");
|
|
2
2
|
//# sourceMappingURL=NativeCardField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topCardChange","registrationName","topFocusChange","validAttributes","Object","assign","autofocus","cardStyle","countryCode","dangerouslyGetFullCardDetails","disabled","onBehalfOf","placeholders","postalCodeEnabled","preferredNetworks","onCardChange","onFocusChange","_default","default","get","Commands","blur","ref","focus","clear","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardField.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA0CA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,yDAEkB,CAAC,CAFnBI,iCAEmB,CAAAD,QAAA,CAFnBC,iCAEmB,CAFnB,IAAAC,SAAA,CAAAL,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBM,eAEmB,CAAAD,SAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,WAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,WAEmB,CAFnBC,gBAEmB,CAFnB,CAAAC,aAEmB,CAFnB,CAAAC,gBAEmB,CAFnB,cAEkB,CAAC,CAFnBC,cAEmB,CAFnB,CAAAD,gBAEmB,CAFnB,eAEkB,EAAC,CAFnBE,eAEmB,CAAAC,MAAA,CAAAC,MAAA,EAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,WAEmB,CAFnB,IAEmB,CAFnBC,6BAEmB,CAFnB,IAEmB,CAFnBC,QAEmB,CAFnB,IAEmB,CAFnBC,UAEmB,CAFnB,IAEmB,CAFnBC,YAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,EAFnBtB,iCAEmB,CAFnB,CAAAuB,YAEmB,CAFnB,IAEmB,CAFnBC,aAEmB,CAFnB,IAEkB,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAApB,OAAA,CAAAqB,OAAA,CAFnB5B,uBAEmB,CAFnB6B,GAEmB,CAFnBxB,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAwB,QAEmB,CAAAvB,OAAA,CAAAuB,QAAA,CAFnB,CAAAC,IAEmB,SAFnB,CAAAA,IAEmBA,CAFnBC,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,MAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBD,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBF,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,EAAC,CA7CnBG,OAAA,CAAAC,IAAA,
|
|
1
|
+
{"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topCardChange","registrationName","topFocusChange","validAttributes","Object","assign","autofocus","cardStyle","countryCode","dangerouslyGetFullCardDetails","disabled","onBehalfOf","placeholders","postalCodeEnabled","preferredNetworks","onCardChange","onFocusChange","_default","default","get","Commands","blur","ref","focus","clear","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardField.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA0CA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,yDAEkB,CAAC,CAFnBI,iCAEmB,CAAAD,QAAA,CAFnBC,iCAEmB,CAFnB,IAAAC,SAAA,CAAAL,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBM,eAEmB,CAAAD,SAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,WAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,WAEmB,CAFnBC,gBAEmB,CAFnB,CAAAC,aAEmB,CAFnB,CAAAC,gBAEmB,CAFnB,cAEkB,CAAC,CAFnBC,cAEmB,CAFnB,CAAAD,gBAEmB,CAFnB,eAEkB,EAAC,CAFnBE,eAEmB,CAAAC,MAAA,CAAAC,MAAA,EAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,WAEmB,CAFnB,IAEmB,CAFnBC,6BAEmB,CAFnB,IAEmB,CAFnBC,QAEmB,CAFnB,IAEmB,CAFnBC,UAEmB,CAFnB,IAEmB,CAFnBC,YAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,EAFnBtB,iCAEmB,CAFnB,CAAAuB,YAEmB,CAFnB,IAEmB,CAFnBC,aAEmB,CAFnB,IAEkB,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAApB,OAAA,CAAAqB,OAAA,CAFnB5B,uBAEmB,CAFnB6B,GAEmB,CAFnBxB,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAwB,QAEmB,CAAAvB,OAAA,CAAAuB,QAAA,CAFnB,CAAAC,IAEmB,SAFnB,CAAAA,IAEmBA,CAFnBC,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,MAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBD,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBF,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,EAAC,CA7CnBG,OAAA,CAAAC,IAAA,kNACAD,OAAA,CAAAC,IAAA","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=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/
|
|
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/davidestes/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/davidestes/stripe/stripe-react-native/src/specs/NativeCardForm.ts 7:0");
|
|
2
2
|
//# sourceMappingURL=NativeCardForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topFocusChange","registrationName","topFormComplete","validAttributes","Object","assign","autofocus","cardStyle","dangerouslyGetFullCardDetails","defaultValues","disabled","placeholders","postalCodeEnabled","preferredNetworks","onFocusChange","onFormComplete","_default","default","get","Commands","blur","ref","focus","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardForm.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DAoCA,IAAAE,uBAAgF,CAAhFF,OAAgF,CAAhF,gEAA+E,CAAC,CAAhF,IAAAG,QAAA,CAAAH,OAAgF,CAAhF,yDAA+E,CAAC,CAAhFI,iCAAgF,CAAAD,QAAA,CAAhFC,iCAAgF,CAAhF,IAAAC,SAAA,CAAAL,OAAgF,CAAhF,kDAA+E,CAAC,CAAhFM,eAAgF,CAAAD,SAAA,CAAhFC,eAAgF,CAAhF,IAAAC,mBAAgF,CAAhF,UAAgF,CAAhF,IAAAC,sBAAgF,CAAAC,OAAA,CAAAD,sBAAA,CAAhF,CAAAE,eAAgF,CAAhF,UAAgF,CAAhFC,gBAAgF,CAAhF,CAAAC,cAAgF,CAAhF,CAAAC,gBAAgF,CAAhF,eAA+E,CAAC,CAAhFC,eAAgF,CAAhF,CAAAD,gBAAgF,CAAhF,gBAA+E,EAAC,CAAhFE,eAAgF,CAAAC,MAAA,CAAAC,MAAA,EAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,6BAAgF,CAAhF,IAAgF,CAAhFC,aAAgF,CAAhF,IAAgF,CAAhFC,QAAgF,CAAhF,IAAgF,CAAhFC,YAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,EAAhFrB,iCAAgF,CAAhF,CAAAsB,aAAgF,CAAhF,IAAgF,CAAhFC,cAAgF,CAAhF,IAA+E,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAAnB,OAAA,CAAAoB,OAAA,CAAhF3B,uBAAgF,CAAhF4B,GAAgF,CAAhFvB,mBAAgF,CAAhF,kBAAAC,sBAAgF,EAAD,CAAC,CAAhF,IAAAuB,QAAgF,CAAAtB,OAAA,CAAAsB,QAAA,CAAhF,CAAAC,IAAgF,SAAhF,CAAAA,IAAgFA,CAAhFC,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,MAAgF,CAAhF,EAA+E,CAAC,CAAD,CAAC,CAAhFC,KAAgF,SAAhF,CAAAA,KAAgFA,CAAhFD,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,OAAgF,CAAhF,EAA+E,CAAC,CAAD,EAAC,CArChFE,OAAA,CAAAC,IAAA,
|
|
1
|
+
{"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topFocusChange","registrationName","topFormComplete","validAttributes","Object","assign","autofocus","cardStyle","dangerouslyGetFullCardDetails","defaultValues","disabled","placeholders","postalCodeEnabled","preferredNetworks","onFocusChange","onFormComplete","_default","default","get","Commands","blur","ref","focus","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardForm.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DAoCA,IAAAE,uBAAgF,CAAhFF,OAAgF,CAAhF,gEAA+E,CAAC,CAAhF,IAAAG,QAAA,CAAAH,OAAgF,CAAhF,yDAA+E,CAAC,CAAhFI,iCAAgF,CAAAD,QAAA,CAAhFC,iCAAgF,CAAhF,IAAAC,SAAA,CAAAL,OAAgF,CAAhF,kDAA+E,CAAC,CAAhFM,eAAgF,CAAAD,SAAA,CAAhFC,eAAgF,CAAhF,IAAAC,mBAAgF,CAAhF,UAAgF,CAAhF,IAAAC,sBAAgF,CAAAC,OAAA,CAAAD,sBAAA,CAAhF,CAAAE,eAAgF,CAAhF,UAAgF,CAAhFC,gBAAgF,CAAhF,CAAAC,cAAgF,CAAhF,CAAAC,gBAAgF,CAAhF,eAA+E,CAAC,CAAhFC,eAAgF,CAAhF,CAAAD,gBAAgF,CAAhF,gBAA+E,EAAC,CAAhFE,eAAgF,CAAAC,MAAA,CAAAC,MAAA,EAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,6BAAgF,CAAhF,IAAgF,CAAhFC,aAAgF,CAAhF,IAAgF,CAAhFC,QAAgF,CAAhF,IAAgF,CAAhFC,YAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,EAAhFrB,iCAAgF,CAAhF,CAAAsB,aAAgF,CAAhF,IAAgF,CAAhFC,cAAgF,CAAhF,IAA+E,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAAnB,OAAA,CAAAoB,OAAA,CAAhF3B,uBAAgF,CAAhF4B,GAAgF,CAAhFvB,mBAAgF,CAAhF,kBAAAC,sBAAgF,EAAD,CAAC,CAAhF,IAAAuB,QAAgF,CAAAtB,OAAA,CAAAsB,QAAA,CAAhF,CAAAC,IAAgF,SAAhF,CAAAA,IAAgFA,CAAhFC,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,MAAgF,CAAhF,EAA+E,CAAC,CAAD,CAAC,CAAhFC,KAAgF,SAAhF,CAAAA,KAAgFA,CAAhFD,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,OAAgF,CAAhF,EAA+E,CAAC,CAAD,EAAC,CArChFE,OAAA,CAAAC,IAAA,iNACAD,OAAA,CAAAC,IAAA","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='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/
|
|
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/davidestes/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/
|
|
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/davidestes/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/davidestes/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 3:0");
|
|
2
2
|
//# sourceMappingURL=NativeEmbeddedPaymentElement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","validAttributes","configuration","intentConfiguration","_default","default","get","Commands","confirm","ref","clearPaymentOption","update","intentConfigurationJson","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeEmbeddedPaymentElement.ts"],"mappings":"mNACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA2BA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBI,eAEmB,CAAAD,QAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,4BAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,4BAEmB,CAFnBC,eAEmB,CAFnB,CAAAC,aAEmB,CAFnB,IAEmB,CAFnBC,mBAEmB,CAFnB,IAEkB,EAAC,KAAAC,QAAA,CAAAL,OAAA,CAAAM,OAAA,CAFnBX,uBAEmB,CAFnBY,GAEmB,CAFnBT,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAS,QAEmB,CAAAR,OAAA,CAAAQ,QAAA,CAFnB,CAAAC,OAEmB,SAFnB,CAAAA,OAEmBA,CAFnBC,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,SAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,kBAEmB,SAFnB,CAAAA,kBAEmBA,CAFnBD,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,oBAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,MAEmB,SAFnB,CAAAA,MAEmBA,CAFnBF,GAEmB,CAFnBG,uBAEmB,CAFnB,CAAAhB,eAEmB,CAFnBa,GAEmB,CAFnB,QAEmB,CAFnB,CAAAG,uBAEmB,CAAD,CAAC,CAAD,EAAC,CA9BnBC,OAAA,CAAAC,IAAA,
|
|
1
|
+
{"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","validAttributes","configuration","intentConfiguration","_default","default","get","Commands","confirm","ref","clearPaymentOption","update","intentConfigurationJson","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeEmbeddedPaymentElement.ts"],"mappings":"mNACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA2BA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBI,eAEmB,CAAAD,QAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,4BAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,4BAEmB,CAFnBC,eAEmB,CAFnB,CAAAC,aAEmB,CAFnB,IAEmB,CAFnBC,mBAEmB,CAFnB,IAEkB,EAAC,KAAAC,QAAA,CAAAL,OAAA,CAAAM,OAAA,CAFnBX,uBAEmB,CAFnBY,GAEmB,CAFnBT,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAS,QAEmB,CAAAR,OAAA,CAAAQ,QAAA,CAFnB,CAAAC,OAEmB,SAFnB,CAAAA,OAEmBA,CAFnBC,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,SAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,kBAEmB,SAFnB,CAAAA,kBAEmBA,CAFnBD,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,oBAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,MAEmB,SAFnB,CAAAA,MAEmBA,CAFnBF,GAEmB,CAFnBG,uBAEmB,CAFnB,CAAAhB,eAEmB,CAFnBa,GAEmB,CAFnB,QAEmB,CAFnB,CAAAG,uBAEmB,CAAD,CAAC,CAAD,EAAC,CA9BnBC,OAAA,CAAAC,IAAA,+NACAD,OAAA,CAAAC,IAAA","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 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/
|
|
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/davidestes/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/
|
|
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/davidestes/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
|
|
2
2
|
//# sourceMappingURL=NativeNavigationBar.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='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/
|
|
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/davidestes/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/
|
|
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/davidestes/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/jaynewstrom/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/davidestes/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
|