@coinflowlabs/react-native 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,22 +8,24 @@ import { useNearIFrameMessageHandlers } from './wallet/NearIFrameMessageHandlers
|
|
|
8
8
|
export function CoinflowWithdraw(props) {
|
|
9
9
|
switch (props.blockchain) {
|
|
10
10
|
case 'solana':
|
|
11
|
-
return React.createElement(
|
|
11
|
+
return React.createElement(SolanaContent, __assign({}, props));
|
|
12
12
|
case 'polygon':
|
|
13
|
-
return React.createElement(
|
|
13
|
+
return React.createElement(EvmContent, __assign({}, props));
|
|
14
|
+
case 'eth':
|
|
15
|
+
return React.createElement(EvmContent, __assign({}, props));
|
|
14
16
|
case 'near':
|
|
15
17
|
return React.createElement(NearPurchase, __assign({}, props));
|
|
16
18
|
default:
|
|
17
19
|
return null;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
function
|
|
22
|
+
function SolanaContent(props) {
|
|
21
23
|
var _a;
|
|
22
24
|
var handlers = useSolanaIFrameMessageHandlers(props);
|
|
23
25
|
var _b = useWebViewWallet(handlers, props), WebViewRef = _b.WebViewRef, handleIframeMessages = _b.handleIframeMessages;
|
|
24
26
|
return (React.createElement(CoinflowWebView, __assign({ publicKey: (_a = props.wallet.publicKey) === null || _a === void 0 ? void 0 : _a.toString(), WebViewRef: WebViewRef, route: "/withdraw/".concat(props.merchantId) }, props, { handleIframeMessages: handleIframeMessages })));
|
|
25
27
|
}
|
|
26
|
-
function
|
|
28
|
+
function EvmContent(props) {
|
|
27
29
|
var handlers = useEthIFrameMessageHandlers(props);
|
|
28
30
|
var _a = useWebViewWallet(handlers, props), WebViewRef = _a.WebViewRef, handleIframeMessages = _a.handleIframeMessages;
|
|
29
31
|
return (React.createElement(CoinflowWebView, __assign({ publicKey: props.wallet.address, WebViewRef: WebViewRef, route: "/withdraw/".concat(props.merchantId) }, props, { handleIframeMessages: handleIframeMessages })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowWithdraw.js","sourceRoot":"","sources":["../src/CoinflowWithdraw.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CoinflowWithdraw.js","sourceRoot":"","sources":["../src/CoinflowWithdraw.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAC,8BAA8B,EAAC,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAEhF,MAAM,UAAU,gBAAgB,CAAC,KAAyC;IACxE,QAAQ,KAAK,CAAC,UAAU,EAAE;QACxB,KAAK,QAAQ;YACX,OAAO,oBAAC,aAAa,eAAK,KAAK,EAAI,CAAC;QACtC,KAAK,SAAS;YACZ,OAAO,oBAAC,UAAU,eAAK,KAAK,EAAI,CAAC;QACnC,KAAK,KAAK;YACR,OAAO,oBAAC,UAAU,eAAK,KAAK,EAAI,CAAC;QACnC,KAAK,MAAM;YACT,OAAO,oBAAC,YAAY,eAAK,KAAK,EAAI,CAAC;QACrC;YACE,OAAO,IAAI,CAAC;KACf;AACH,CAAC;AAED,SAAS,aAAa,CAAC,KAA+C;;IACpE,IAAM,QAAQ,GAAG,8BAA8B,CAAC,KAAK,CAAC,CAAC;IACjD,IAAA,KAAqC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,EAArE,UAAU,gBAAA,EAAE,oBAAoB,0BAAqC,CAAC;IAE7E,OAAO,CACL,oBAAC,eAAe,aACd,SAAS,EAAE,MAA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