@funkit/connect 5.1.0 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/{chunk-2T4ZDGAO.js → chunk-A7G4HZZY.js} +9 -4
  3. package/dist/{chunk-DYPSSLLL.js → chunk-ELA2ZIK4.js} +7 -9
  4. package/dist/{chunk-5HIKBJTA.js → chunk-TTI2Q45P.js} +7 -9
  5. package/dist/components/Box/Box.d.ts +50 -50
  6. package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +3 -2
  7. package/dist/components/Dropdown/BaseDropdown.d.ts +3 -9
  8. package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
  9. package/dist/components/FunAlert/FunAlert.d.ts +3 -1
  10. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -3
  11. package/dist/components/FunBadge/FunBadge.d.ts +14 -4
  12. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +1 -2
  13. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +1 -2
  14. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryTransaction.d.ts +7 -1
  15. package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +2 -0
  16. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +7 -0
  17. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  18. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +1 -1
  19. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +2 -1
  20. package/dist/components/Icons/New/PercentageIcon.d.ts +2 -0
  21. package/dist/components/SolanaDepositAlert/SolanaDepositAlert.d.ts +6 -0
  22. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +4 -3
  23. package/dist/consts/checkout.d.ts +7 -1
  24. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  25. package/dist/css/sprinkles.css.d.ts +62 -64
  26. package/dist/domains/asset.d.ts +12 -2
  27. package/dist/domains/checkoutRecipient.d.ts +6 -0
  28. package/dist/domains/quote.d.ts +8 -0
  29. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  30. package/dist/hooks/useTokenTransfer.d.ts +3 -2
  31. package/dist/index.css +2515 -2677
  32. package/dist/index.d.ts +7 -2
  33. package/dist/index.js +1993 -1588
  34. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
  35. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -1
  36. package/dist/modals/CheckoutModal/SelectAsset.d.ts +2 -0
  37. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +8 -2
  38. package/dist/providers/AuthenticationContext.d.ts +1 -2
  39. package/dist/providers/FunkitCheckoutContext.d.ts +3 -3
  40. package/dist/providers/FunkitHistoryContext.d.ts +2 -1
  41. package/dist/providers/FunkitThemeProvider.d.ts +18 -21
  42. package/dist/providers/GeneralWalletProvider.d.ts +8 -8
  43. package/dist/themes/baseTheme.js +1 -1
  44. package/dist/themes/darkTheme.js +2 -2
  45. package/dist/themes/lightTheme.js +2 -2
  46. package/dist/utils/checkout.d.ts +10 -2
  47. package/dist/utils/flags/config.d.ts +12 -0
  48. package/dist/utils/signature.d.ts +1 -0
  49. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  54. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  58. package/dist/wallets/walletConnectors/index.js +60 -60
  59. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  60. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  68. package/package.json +17 -17
  69. package/dist/components/FunAsset/FunAssetBadge.d.ts +0 -16
  70. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  71. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
  72. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
  73. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
  74. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
  75. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
  76. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
  77. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
  78. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
  79. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
  80. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
  81. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
  82. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
  83. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
  84. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
  85. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
  86. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
  87. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
@@ -1,96 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var frontierWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isFrontierInjected = hasInjectedProvider({
17
- namespace: "frontier.ethereum",
18
- flag: "isFrontier"
19
- });
20
- const shouldUseWalletConnect = !isFrontierInjected;
21
- return {
22
- id: "frontier",
23
- name: "Frontier Wallet",
24
- rdns: "xyz.frontier.wallet",
25
- installed: isFrontierInjected,
26
- iconUrl: async () => (await import("./frontierWallet-5QV7ZACT.js")).default,
27
- iconBackground: "#CC703C",
28
- downloadUrls: {
29
- android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
30
- ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
31
- qrCode: "https://www.frontier.xyz/download",
32
- chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
33
- browserExtension: "https://www.frontier.xyz/download"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => {
37
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
38
- } : void 0
39
- },
40
- qrCode: shouldUseWalletConnect ? {
41
- getUri: (uri) => {
42
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
43
- },
44
- instructions: {
45
- learnMoreUrl: "https://help.frontier.xyz/en/",
46
- steps: [
47
- {
48
- description: "wallet_connectors.im_token.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.im_token.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.im_token.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.im_token.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.im_token.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.im_token.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- } : void 0,
65
- extension: {
66
- instructions: {
67
- learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
68
- steps: [
69
- {
70
- description: "wallet_connectors.frontier.extension.step1.description",
71
- step: "install",
72
- title: "wallet_connectors.frontier.extension.step1.title"
73
- },
74
- {
75
- description: "wallet_connectors.frontier.extension.step2.description",
76
- step: "create",
77
- title: "wallet_connectors.frontier.extension.step2.title"
78
- },
79
- {
80
- description: "wallet_connectors.frontier.extension.step3.description",
81
- step: "refresh",
82
- title: "wallet_connectors.frontier.extension.step3.title"
83
- }
84
- ]
85
- }
86
- },
87
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
88
- namespace: "frontier.ethereum",
89
- flag: "isFrontier"
90
- })
91
- };
92
- };
93
-
94
- export {
95
- frontierWallet
96
- };
@@ -1,106 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/trustWallet/trustWallet.ts
11
- import { isMobile } from "@funkit/utils";
12
- var trustWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
17
- const shouldUseWalletConnect = !isTrustWalletInjected;
18
- const getUriMobile = (uri) => {
19
- return `trust://wc?uri=${encodeURIComponent(uri)}`;
20
- };
21
- const getUriQR = (uri) => {
22
- return uri;
23
- };
24
- const mobileConnector = {
25
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
26
- };
27
- let qrConnector = void 0;
28
- if (shouldUseWalletConnect) {
29
- qrConnector = {
30
- getUri: getUriQR,
31
- instructions: {
32
- learnMoreUrl: "https://trustwallet.com/",
33
- steps: [
34
- {
35
- description: "wallet_connectors.trust.qr_code.step1.description",
36
- step: "install",
37
- title: "wallet_connectors.trust.qr_code.step1.title"
38
- },
39
- {
40
- description: "wallet_connectors.trust.qr_code.step2.description",
41
- step: "create",
42
- title: "wallet_connectors.trust.qr_code.step2.title"
43
- },
44
- {
45
- description: "wallet_connectors.trust.qr_code.step3.description",
46
- step: "scan",
47
- title: "wallet_connectors.trust.qr_code.step3.title"
48
- }
49
- ]
50
- }
51
- };
52
- }
53
- const extensionConnector = {
54
- instructions: {
55
- learnMoreUrl: "https://trustwallet.com/browser-extension",
56
- steps: [
57
- {
58
- description: "wallet_connectors.trust.extension.step1.description",
59
- step: "install",
60
- title: "wallet_connectors.trust.extension.step1.title"
61
- },
62
- {
63
- description: "wallet_connectors.trust.extension.step2.description",
64
- step: "create",
65
- title: "wallet_connectors.trust.extension.step2.title"
66
- },
67
- {
68
- description: "wallet_connectors.trust.extension.step3.description",
69
- step: "refresh",
70
- title: "wallet_connectors.trust.extension.step3.title"
71
- }
72
- ]
73
- }
74
- };
75
- return {
76
- id: "trust",
77
- name: "Trust Wallet",
78
- rdns: "com.trustwallet.app",
79
- iconUrl: async () => (await import("./trustWallet-2N5TZJGC.js")).default,
80
- // Note that we never resolve `installed` to `false` because the
81
- // Trust Wallet provider falls back to other connection methods if
82
- // the injected connector isn't available
83
- installed: isTrustWalletInjected || void 0,
84
- iconAccent: "#3375BB",
85
- iconBackground: "#fff",
86
- downloadUrls: {
87
- android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
88
- ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
89
- mobile: "https://trustwallet.com/download",
90
- qrCode: "https://trustwallet.com/download",
91
- chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
92
- browserExtension: "https://trustwallet.com/browser-extension"
93
- },
94
- mobile: mobileConnector,
95
- qrCode: qrConnector,
96
- extension: extensionConnector,
97
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
98
- projectId,
99
- walletConnectParameters
100
- }) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
101
- };
102
- };
103
-
104
- export {
105
- trustWallet
106
- };
@@ -1,95 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/coreWallet/coreWallet.ts
11
- var coreWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isCoreInjected = hasInjectedProvider({
16
- namespace: "avalanche",
17
- flag: "isAvalanche"
18
- });
19
- const shouldUseWalletConnect = !isCoreInjected;
20
- return {
21
- id: "core",
22
- name: "Core",
23
- rdns: "app.core.extension",
24
- iconUrl: async () => (await import("./coreWallet-RFVUHOVE.js")).default,
25
- iconBackground: "#1A1A1C",
26
- installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
29
- ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
30
- mobile: "https://core.app/?downloadCoreMobile=1",
31
- qrCode: "https://core.app/?downloadCoreMobile=1",
32
- chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
33
- browserExtension: "https://extension.core.app/"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
37
- },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri: (uri) => uri,
40
- instructions: {
41
- learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
42
- steps: [
43
- {
44
- description: "wallet_connectors.core.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.core.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.core.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.core.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.core.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.core.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://extension.core.app/",
64
- steps: [
65
- {
66
- description: "wallet_connectors.core.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.core.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.core.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.core.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.core.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.core.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- }) : getInjectedConnector({
87
- namespace: "avalanche",
88
- flag: "isAvalanche"
89
- })
90
- };
91
- };
92
-
93
- export {
94
- coreWallet
95
- };
@@ -1,96 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
11
- var coin98Wallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isCoin98WalletInjected = hasInjectedProvider({
16
- namespace: "coin98.provider",
17
- flag: "isCoin98"
18
- });
19
- const shouldUseWalletConnect = !isCoin98WalletInjected;
20
- return {
21
- id: "coin98",
22
- name: "Coin98 Wallet",
23
- iconUrl: async () => (await import("./coin98Wallet-I5CP5KYZ.js")).default,
24
- installed: isCoin98WalletInjected,
25
- iconAccent: "#CDA349",
26
- iconBackground: "#fff",
27
- rdns: "coin98.com",
28
- downloadUrls: {
29
- android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
30
- ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
31
- mobile: "https://coin98.com/wallet",
32
- qrCode: "https://coin98.com/wallet",
33
- chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
34
- browserExtension: "https://coin98.com/wallet"
35
- },
36
- mobile: {
37
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
38
- },
39
- qrCode: shouldUseWalletConnect ? {
40
- getUri: (uri) => uri,
41
- instructions: {
42
- learnMoreUrl: "https://coin98.com/wallet",
43
- steps: [
44
- {
45
- description: "wallet_connectors.coin98.qr_code.step1.description",
46
- step: "install",
47
- title: "wallet_connectors.coin98.qr_code.step1.title"
48
- },
49
- {
50
- description: "wallet_connectors.coin98.qr_code.step2.description",
51
- step: "create",
52
- title: "wallet_connectors.coin98.qr_code.step2.title"
53
- },
54
- {
55
- description: "wallet_connectors.coin98.qr_code.step3.description",
56
- step: "scan",
57
- title: "wallet_connectors.coin98.qr_code.step3.title"
58
- }
59
- ]
60
- }
61
- } : void 0,
62
- extension: {
63
- instructions: {
64
- learnMoreUrl: "https://coin98.com/wallet",
65
- steps: [
66
- {
67
- description: "wallet_connectors.coin98.extension.step1.description",
68
- step: "install",
69
- title: "wallet_connectors.coin98.extension.step1.title"
70
- },
71
- {
72
- description: "wallet_connectors.coin98.extension.step2.description",
73
- step: "create",
74
- title: "wallet_connectors.coin98.extension.step2.title"
75
- },
76
- {
77
- description: "wallet_connectors.coin98.extension.step3.description",
78
- step: "refresh",
79
- title: "wallet_connectors.coin98.extension.step3.title"
80
- }
81
- ]
82
- }
83
- },
84
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
- projectId,
86
- walletConnectParameters
87
- }) : getInjectedConnector({
88
- namespace: "coin98Wallet",
89
- flag: "isCoin98"
90
- })
91
- };
92
- };
93
-
94
- export {
95
- coin98Wallet
96
- };
@@ -1,87 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
- var clvWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
16
- const shouldUseWalletConnect = !isCLVInjected;
17
- return {
18
- id: "clv",
19
- name: "CLV",
20
- iconUrl: async () => (await import("./clvWallet-VVMLP7BK.js")).default,
21
- iconBackground: "#fff",
22
- iconAccent: "#BDFDE2",
23
- installed: isCLVInjected,
24
- downloadUrls: {
25
- chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
26
- ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
27
- mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
28
- qrCode: "https://clv.org/"
29
- },
30
- extension: {
31
- instructions: {
32
- learnMoreUrl: "https://clv.org/",
33
- steps: [
34
- {
35
- description: "wallet_connectors.clv.extension.step1.description",
36
- step: "install",
37
- title: "wallet_connectors.clv.extension.step1.title"
38
- },
39
- {
40
- description: "wallet_connectors.clv.extension.step2.description",
41
- step: "create",
42
- title: "wallet_connectors.clv.extension.step2.title"
43
- },
44
- {
45
- description: "wallet_connectors.clv.extension.step3.description",
46
- step: "refresh",
47
- title: "wallet_connectors.clv.extension.step3.title"
48
- }
49
- ]
50
- }
51
- },
52
- mobile: {
53
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
54
- },
55
- qrCode: shouldUseWalletConnect ? {
56
- getUri: (uri) => uri,
57
- instructions: {
58
- learnMoreUrl: "https://clv.org/",
59
- steps: [
60
- {
61
- description: "wallet_connectors.clv.qr_code.step1.description",
62
- step: "install",
63
- title: "wallet_connectors.clv.qr_code.step1.title"
64
- },
65
- {
66
- description: "wallet_connectors.clv.qr_code.step2.description",
67
- step: "create",
68
- title: "wallet_connectors.clv.qr_code.step2.title"
69
- },
70
- {
71
- description: "wallet_connectors.clv.qr_code.step3.description",
72
- step: "scan",
73
- title: "wallet_connectors.clv.qr_code.step3.title"
74
- }
75
- ]
76
- }
77
- } : void 0,
78
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
79
- projectId,
80
- walletConnectParameters
81
- }) : getInjectedConnector({ namespace: "clover" })
82
- };
83
- };
84
-
85
- export {
86
- clvWallet
87
- };
@@ -1,70 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
11
- import { isAndroid, isIOS } from "@funkit/utils";
12
- var rainbowWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
17
- const shouldUseWalletConnect = !isRainbowInjected;
18
- const getUri = (uri) => {
19
- return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
20
- uri
21
- )}&connector=rainbowkit`;
22
- };
23
- return {
24
- id: "rainbow",
25
- name: "Rainbow",
26
- rdns: "me.rainbow",
27
- iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
28
- iconBackground: "#0c2f78",
29
- installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
30
- downloadUrls: {
31
- android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
32
- ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
33
- mobile: "https://rainbow.download?utm_source=rainbowkit",
34
- qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
35
- browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
36
- },
37
- mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri,
40
- instructions: {
41
- learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
42
- steps: [
43
- {
44
- description: "wallet_connectors.rainbow.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.rainbow.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.rainbow.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.rainbow.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.rainbow.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.rainbow.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
62
- projectId,
63
- walletConnectParameters
64
- }) : getInjectedConnector({ flag: "isRainbow" })
65
- };
66
- };
67
-
68
- export {
69
- rainbowWallet
70
- };