@funkit/connect 5.1.3 → 5.1.4
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/CHANGELOG.md +7 -0
- package/dist/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +3 -1
- package/dist/index.js +32 -20
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +4 -1
- package/dist/wallets/walletConnectors/index.js +38 -38
- package/package.json +2 -2
- package/dist/wallets/walletConnectors/chunk-2UCNRD7H.js +0 -70
- package/dist/wallets/walletConnectors/chunk-3S2U24BJ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-4WEHDI4Y.js +0 -94
- package/dist/wallets/walletConnectors/chunk-63YLN6R5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-6ONTSPEY.js +0 -98
- package/dist/wallets/walletConnectors/chunk-A5APNTGL.js +0 -99
- package/dist/wallets/walletConnectors/chunk-AD2KIJB6.js +0 -103
- package/dist/wallets/walletConnectors/chunk-AXWP3GD4.js +0 -100
- package/dist/wallets/walletConnectors/chunk-DTRYS3MO.js +0 -96
- package/dist/wallets/walletConnectors/chunk-G73C6P5P.js +0 -146
- package/dist/wallets/walletConnectors/chunk-GSOYKKIS.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HBA36GW3.js +0 -95
- package/dist/wallets/walletConnectors/chunk-IDKVN5CF.js +0 -93
- package/dist/wallets/walletConnectors/chunk-ISIBREBO.js +0 -106
- package/dist/wallets/walletConnectors/chunk-KR6JBW5E.js +0 -87
- package/dist/wallets/walletConnectors/chunk-LMZMXEXL.js +0 -66
- package/dist/wallets/walletConnectors/chunk-MSFKSQBY.js +0 -110
- package/dist/wallets/walletConnectors/chunk-W6N74MS3.js +0 -69
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
|
|
11
|
-
var safepalWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSafePalWalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "safepalProvider",
|
|
17
|
-
flag: "isSafePal"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isSafePalWalletInjected;
|
|
20
|
-
const getUriMobile = (uri) => {
|
|
21
|
-
return `safepalwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
const getUriQR = async (uri) => {
|
|
24
|
-
return uri;
|
|
25
|
-
};
|
|
26
|
-
const mobileConnector = {
|
|
27
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
28
|
-
};
|
|
29
|
-
let qrConnector = void 0;
|
|
30
|
-
if (shouldUseWalletConnect) {
|
|
31
|
-
qrConnector = {
|
|
32
|
-
getUri: getUriQR,
|
|
33
|
-
instructions: {
|
|
34
|
-
learnMoreUrl: "https://safepal.com/",
|
|
35
|
-
steps: [
|
|
36
|
-
{
|
|
37
|
-
description: "wallet_connectors.safepal.qr_code.step1.description",
|
|
38
|
-
step: "install",
|
|
39
|
-
title: "wallet_connectors.safepal.qr_code.step1.title"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
description: "wallet_connectors.safepal.qr_code.step2.description",
|
|
43
|
-
step: "create",
|
|
44
|
-
title: "wallet_connectors.safepal.qr_code.step2.title"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.safepal.qr_code.step3.description",
|
|
48
|
-
step: "scan",
|
|
49
|
-
title: "wallet_connectors.safepal.qr_code.step3.title"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
const extensionConnector = {
|
|
56
|
-
instructions: {
|
|
57
|
-
learnMoreUrl: "https://www.safepal.com/download?product=2",
|
|
58
|
-
steps: [
|
|
59
|
-
{
|
|
60
|
-
description: "wallet_connectors.safepal.extension.step1.description",
|
|
61
|
-
step: "install",
|
|
62
|
-
title: "wallet_connectors.safepal.extension.step1.title"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: "wallet_connectors.safepal.extension.step2.description",
|
|
66
|
-
step: "create",
|
|
67
|
-
title: "wallet_connectors.safepal.extension.step2.title"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.safepal.extension.step3.description",
|
|
71
|
-
step: "refresh",
|
|
72
|
-
title: "wallet_connectors.safepal.extension.step3.title"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
return {
|
|
78
|
-
id: "safepal",
|
|
79
|
-
name: "SafePal Wallet",
|
|
80
|
-
iconUrl: async () => (await import("./safepalWallet-7YULGM2L.js")).default,
|
|
81
|
-
// Note that we never resolve `installed` to `false` because the
|
|
82
|
-
// SafePal Wallet provider falls back to other connection methods if
|
|
83
|
-
// the injected connector isn't available
|
|
84
|
-
installed: isSafePalWalletInjected,
|
|
85
|
-
iconAccent: "#3375BB",
|
|
86
|
-
iconBackground: "#fff",
|
|
87
|
-
downloadUrls: {
|
|
88
|
-
android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
|
|
89
|
-
ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
|
|
90
|
-
mobile: "https://www.safepal.com/en/download",
|
|
91
|
-
qrCode: "https://www.safepal.com/en/download",
|
|
92
|
-
chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
|
|
93
|
-
browserExtension: "https://www.safepal.com/download?product=2"
|
|
94
|
-
},
|
|
95
|
-
mobile: mobileConnector,
|
|
96
|
-
...qrConnector ? qrConnector : {},
|
|
97
|
-
extension: extensionConnector,
|
|
98
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
99
|
-
projectId,
|
|
100
|
-
walletConnectParameters
|
|
101
|
-
}) : getInjectedConnector({
|
|
102
|
-
namespace: "safepalProvider",
|
|
103
|
-
flag: "isSafePal"
|
|
104
|
-
})
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
safepalWallet
|
|
110
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var bifrostWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
17
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
id: "bifrostWallet",
|
|
23
|
-
name: "Bifrost Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
25
|
-
iconBackground: "#fff",
|
|
26
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
-
},
|
|
32
|
-
mobile: {
|
|
33
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
34
|
-
},
|
|
35
|
-
qrCode: shouldUseWalletConnect ? {
|
|
36
|
-
getUri: (uri) => uri,
|
|
37
|
-
instructions: {
|
|
38
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
39
|
-
steps: [
|
|
40
|
-
{
|
|
41
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
42
|
-
step: "install",
|
|
43
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
47
|
-
step: "create",
|
|
48
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
52
|
-
step: "scan",
|
|
53
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
} : void 0,
|
|
58
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
59
|
-
projectId,
|
|
60
|
-
walletConnectParameters
|
|
61
|
-
}) : getInjectedConnector({
|
|
62
|
-
flag: "isBifrost"
|
|
63
|
-
})
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
bifrostWallet
|
|
69
|
-
};
|