@funkit/connect 11.6.0 → 12.0.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/{chunk-67BKQQNG.js → chunk-2RND3WWH.js} +1 -1
  3. package/dist/{chunk-L67HP4HQ.js → chunk-53FF4ZHH.js} +1 -1
  4. package/dist/{chunk-4YEAUICE.js → chunk-DH3DS4FX.js} +1 -0
  5. package/dist/clients/chunk-27VBRE7W.js +4907 -0
  6. package/dist/clients/{chunk-UPB4JKJG.js → chunk-37Q6DUR7.js} +12 -7
  7. package/dist/clients/chunk-3DHSLLCU.js +331 -0
  8. package/dist/clients/{chunk-DUBZPIDN.js → chunk-3J2GOB5X.js} +1 -1
  9. package/dist/clients/{chunk-LYZLETOM.js → chunk-A5JW3UI6.js} +1 -1
  10. package/dist/clients/chunk-BCNE3ZKM.js +190 -0
  11. package/dist/clients/chunk-BWJC2WD7.js +4899 -0
  12. package/dist/clients/{chunk-ZQZDPRWC.js → chunk-DYV3LRSE.js} +1 -1
  13. package/dist/clients/{chunk-Y7WLUPTX.js → chunk-EQA5U4V6.js} +8 -8
  14. package/dist/clients/chunk-EYMFEWQL.js +30 -0
  15. package/dist/clients/chunk-FPOGADLJ.js +4899 -0
  16. package/dist/clients/chunk-HB7S3NDI.js +15 -0
  17. package/dist/clients/chunk-HDFCM5UL.js +15 -0
  18. package/dist/clients/{chunk-IYCZWLAF.js → chunk-IAIRECDV.js} +8 -37
  19. package/dist/clients/chunk-JVR4CX6N.js +296 -0
  20. package/dist/clients/chunk-NEKHTWTT.js +331 -0
  21. package/dist/clients/chunk-PA7WW6VC.js +296 -0
  22. package/dist/clients/chunk-R6UAC2TB.js +190 -0
  23. package/dist/clients/chunk-RHOSJED2.js +335 -0
  24. package/dist/clients/chunk-SKDFSMAO.js +30 -0
  25. package/dist/clients/chunk-TI2NG2Z6.js +30 -0
  26. package/dist/clients/chunk-TZFXFVDW.js +296 -0
  27. package/dist/clients/chunk-VE6QD5IM.js +149 -0
  28. package/dist/clients/chunk-VXX2XK5J.js +190 -0
  29. package/dist/clients/{chunk-WNZ6QV5Q.js → chunk-WXSFLUPZ.js} +79 -15
  30. package/dist/clients/chunk-XSRAZSYG.js +15 -0
  31. package/dist/clients/fanatics.css +4686 -4659
  32. package/dist/clients/fanatics.js +7 -9
  33. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  34. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  35. package/dist/clients/internal/nado/withdrawalForm.css +4712 -4682
  36. package/dist/clients/internal/nado/withdrawalForm.js +37 -13
  37. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  38. package/dist/clients/lighter.css +4712 -4682
  39. package/dist/clients/lighter.js +50 -30
  40. package/dist/clients/mallard.js +4 -4
  41. package/dist/clients/nado.js +3 -3
  42. package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +28 -19
  43. package/dist/clients/polymarket/createPolymarketDepositConfig.js +5 -4
  44. package/dist/clients/polymarket/index.d.ts +0 -1
  45. package/dist/clients/polymarket/index.js +4 -17
  46. package/dist/clients/polymarket/polymarket.d.ts +12 -27
  47. package/dist/clients/polymarket/polymarket.js +1 -1
  48. package/dist/components/AsyncImage/useAsyncImage.d.ts +2 -0
  49. package/dist/components/Box/Box.d.ts +15 -15
  50. package/dist/components/Dialog/Dialog.d.ts +8 -1
  51. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
  52. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +10 -0
  53. package/dist/components/ModalHeaderTabs/ModalHeaderTabs.d.ts +23 -0
  54. package/dist/consts/polymarket.d.ts +14 -0
  55. package/dist/css/sprinkles.css.d.ts +17 -15
  56. package/dist/domains/polymarketPerps.d.ts +14 -0
  57. package/dist/hooks/queries/useFops.d.ts +3 -1
  58. package/dist/hooks/track/CheckoutModalEvent.d.ts +1 -0
  59. package/dist/hooks/track/analytics/checkout.d.ts +10 -0
  60. package/dist/hooks/track/analytics/events.d.ts +20 -1
  61. package/dist/hooks/track/analytics/quote.d.ts +3 -1
  62. package/dist/hooks/track/analytics/resolveExecutionProgressContext.d.ts +2 -1
  63. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +0 -16
  64. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +12 -1
  65. package/dist/hooks/useCheckoutTransferInit.d.ts +3 -1
  66. package/dist/hooks/useFittedText.d.ts +19 -0
  67. package/dist/hooks/usePolymarketAccountBalances.d.ts +13 -25
  68. package/dist/hooks/useTextMeasurer.d.ts +1 -1
  69. package/dist/hooks/useUpdateActiveFunkitCheckout.d.ts +10 -0
  70. package/dist/index.css +4712 -4682
  71. package/dist/index.js +5121 -3752
  72. package/dist/modals/CheckoutModal/CheckoutModalPrefetchedHooks.d.ts +2 -1
  73. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -0
  74. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +6 -1
  75. package/dist/modals/PolymarketPerpsTransfer/DirectionSwapButton.d.ts +1 -11
  76. package/dist/modals/PolymarketPerpsTransfer/PerpsHeaderTabs.d.ts +29 -0
  77. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.css.d.ts +9 -0
  78. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.d.ts +15 -0
  79. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferBody.d.ts +12 -0
  80. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsPrefetch.d.ts +7 -0
  81. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +16 -2
  82. package/dist/modals/PolymarketPerpsTransfer/TransferAccountsCard.d.ts +12 -0
  83. package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +8 -1
  84. package/dist/modals/PolymarketPerpsTransfer/TransferPercentOptions.d.ts +13 -0
  85. package/dist/modals/PolymarketPerpsTransfer/usePerpsHeaderTabsState.d.ts +28 -0
  86. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +31 -5
  87. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +6 -0
  88. package/dist/modals/WithdrawalModal/useWithdrawalChainPreference.d.ts +17 -0
  89. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +2 -1
  90. package/dist/providers/FunkitCheckoutContext/index.d.ts +13 -1
  91. package/dist/providers/FunkitCheckoutContext/types.d.ts +44 -20
  92. package/dist/providers/FunkitShadowHostProvider.d.ts +31 -0
  93. package/dist/providers/FunkitThemeProvider.d.ts +3 -0
  94. package/dist/providers/FunkitThemeStyle.d.ts +12 -0
  95. package/dist/shadow/loadShadowCss.d.ts +9 -0
  96. package/dist/shadow/useMountShadowHost.d.ts +18 -0
  97. package/dist/shadow/useShadowCss.d.ts +6 -0
  98. package/dist/shadow-css.js +1 -1
  99. package/dist/themes/baseTheme.js +1 -1
  100. package/dist/themes/darkTheme.js +2 -2
  101. package/dist/themes/lightTheme.js +2 -2
  102. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
  103. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
  104. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
  105. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
  106. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
  107. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
  108. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
  109. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
  110. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
  111. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
  112. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
  113. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
  114. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
  115. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
  116. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
  117. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
  118. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
  119. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
  120. package/dist/wallets/walletConnectors/index.js +33 -33
  121. package/package.json +5 -5
  122. package/dist/clients/chunk-DSZHYQPX.js +0 -31
  123. package/dist/clients/chunk-FNB7OPJI.js +0 -1316
  124. package/dist/clients/chunk-HZP4DXIZ.js +0 -231
  125. package/dist/clients/chunk-LUHEVXPD.js +0 -109
  126. package/dist/clients/chunk-SX3CX34W.js +0 -1177
  127. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +0 -17545
  128. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +0 -30
  129. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +0 -20
  130. package/dist/clients/polymarket/index.css +0 -17545
  131. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferRows.d.ts +0 -10
  132. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.css.d.ts +0 -13
  133. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.d.ts +0 -27
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.js";
9
+
10
+ // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
+ var roninWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isRoninInjected = hasInjectedProvider({
16
+ namespace: "ronin.provider"
17
+ });
18
+ return {
19
+ id: "ronin",
20
+ name: "Ronin Wallet",
21
+ iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
22
+ iconBackground: "#ffffff",
23
+ rdns: "com.roninchain.wallet",
24
+ installed: isRoninInjected || void 0,
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
27
+ ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
28
+ mobile: "https://wallet.roninchain.com",
29
+ chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
30
+ edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
31
+ firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
32
+ browserExtension: "https://wallet.roninchain.com/",
33
+ qrCode: "https://wallet.roninchain.com/"
34
+ },
35
+ mobile: {
36
+ getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
37
+ },
38
+ qrCode: {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://wallet.roninchain.com/",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.ronin.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.ronin.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.ronin.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.ronin.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.ronin.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.ronin.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://wallet.roninchain.com/",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.ronin.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.ronin.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.ronin.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.ronin.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.ronin.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.ronin.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ })
87
+ };
88
+ };
89
+
90
+ export {
91
+ roninWallet
92
+ };
@@ -0,0 +1,110 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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
+ };
@@ -0,0 +1,103 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.js";
9
+
10
+ // src/wallets/walletConnectors/subWallet/subWallet.ts
11
+ var subWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
16
+ const shouldUseWalletConnect = !isSubWalletInjected;
17
+ const getUriMobile = (uri) => {
18
+ return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
19
+ };
20
+ const getUriQR = (uri) => {
21
+ return uri;
22
+ };
23
+ const mobileConnector = {
24
+ getUri: shouldUseWalletConnect ? getUriMobile : void 0
25
+ };
26
+ let qrConnector = void 0;
27
+ if (shouldUseWalletConnect) {
28
+ qrConnector = {
29
+ getUri: getUriQR,
30
+ instructions: {
31
+ learnMoreUrl: "https://www.subwallet.app/",
32
+ steps: [
33
+ {
34
+ description: "wallet_connectors.subwallet.qr_code.step1.description",
35
+ step: "install",
36
+ title: "wallet_connectors.subwallet.qr_code.step1.title"
37
+ },
38
+ {
39
+ description: "wallet_connectors.subwallet.qr_code.step2.description",
40
+ step: "create",
41
+ title: "wallet_connectors.subwallet.qr_code.step2.title"
42
+ },
43
+ {
44
+ description: "wallet_connectors.subwallet.qr_code.step3.description",
45
+ step: "scan",
46
+ title: "wallet_connectors.subwallet.qr_code.step3.title"
47
+ }
48
+ ]
49
+ }
50
+ };
51
+ }
52
+ const extensionConnector = {
53
+ instructions: {
54
+ learnMoreUrl: "https://www.subwallet.app/",
55
+ steps: [
56
+ {
57
+ description: "wallet_connectors.subwallet.extension.step1.description",
58
+ step: "install",
59
+ title: "wallet_connectors.subwallet.extension.step1.title"
60
+ },
61
+ {
62
+ description: "wallet_connectors.subwallet.extension.step2.description",
63
+ step: "create",
64
+ title: "wallet_connectors.subwallet.extension.step2.title"
65
+ },
66
+ {
67
+ description: "wallet_connectors.subwallet.extension.step3.description",
68
+ step: "refresh",
69
+ title: "wallet_connectors.subwallet.extension.step3.title"
70
+ }
71
+ ]
72
+ }
73
+ };
74
+ return {
75
+ id: "subwallet",
76
+ name: "SubWallet",
77
+ rdns: "app.subwallet",
78
+ iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
79
+ iconBackground: "#fff",
80
+ installed: isSubWalletInjected || void 0,
81
+ downloadUrls: {
82
+ browserExtension: "https://www.subwallet.app/download",
83
+ chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
84
+ firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
85
+ edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
86
+ mobile: "https://www.subwallet.app/download",
87
+ android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
88
+ ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
89
+ qrCode: "https://www.subwallet.app/download"
90
+ },
91
+ mobile: mobileConnector,
92
+ qrCode: qrConnector,
93
+ extension: extensionConnector,
94
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
95
+ projectId,
96
+ walletConnectParameters
97
+ }) : getInjectedConnector({ namespace: "SubWallet" })
98
+ };
99
+ };
100
+
101
+ export {
102
+ subWallet
103
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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
+ };
@@ -0,0 +1,106 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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,16 +1,16 @@
1
1
  "use client";
2
+ import {
3
+ xdefiWallet
4
+ } from "./chunk-JN5I3DNC.js";
2
5
  import {
3
6
  zealWallet
4
7
  } from "./chunk-52QXXLDS.js";
5
8
  import {
6
- zerionWallet
7
- } from "./chunk-SWFF3TWJ.js";
9
+ talismanWallet
10
+ } from "./chunk-4DCO3TGL.js";
8
11
  import {
9
12
  tahoWallet
10
13
  } from "./chunk-7ZYCBDQ4.js";
11
- import {
12
- talismanWallet
13
- } from "./chunk-4DCO3TGL.js";
14
14
  import {
15
15
  tokenPocketWallet
16
16
  } from "./chunk-WKNQMP4A.js";
@@ -20,21 +20,21 @@ import {
20
20
  import {
21
21
  trustWallet
22
22
  } from "./chunk-KCRO2AGO.js";
23
- import {
24
- uniswapWallet
25
- } from "./chunk-Z3PPW6NC.js";
26
23
  import {
27
24
  walletConnectWallet
28
25
  } from "./chunk-3FCWJRI4.js";
29
26
  import {
30
- xdefiWallet
31
- } from "./chunk-JN5I3DNC.js";
27
+ uniswapWallet
28
+ } from "./chunk-Z3PPW6NC.js";
32
29
  import {
33
- rabbyWallet
34
- } from "./chunk-RB66PKPA.js";
30
+ zerionWallet
31
+ } from "./chunk-SWFF3TWJ.js";
35
32
  import {
36
33
  rainbowWallet
37
34
  } from "./chunk-W2LCLDPX.js";
35
+ import {
36
+ rabbyWallet
37
+ } from "./chunk-RB66PKPA.js";
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-OQB55QXP.js";
@@ -59,45 +59,45 @@ import {
59
59
  import {
60
60
  mewWallet
61
61
  } from "./chunk-MQM45ADF.js";
62
- import {
63
- oktoWallet
64
- } from "./chunk-YWOVAU6O.js";
65
62
  import {
66
63
  okxWallet
67
64
  } from "./chunk-KI5Y2BBF.js";
65
+ import {
66
+ oktoWallet
67
+ } from "./chunk-YWOVAU6O.js";
68
68
  import {
69
69
  omniWallet
70
70
  } from "./chunk-2CX7LX4J.js";
71
- import {
72
- oneInchWallet
73
- } from "./chunk-QG6ZHI7B.js";
74
71
  import {
75
72
  oneKeyWallet
76
73
  } from "./chunk-WVT6BBJH.js";
74
+ import {
75
+ oneInchWallet
76
+ } from "./chunk-QG6ZHI7B.js";
77
77
  import {
78
78
  phantomWallet
79
79
  } from "./chunk-QY53O7WG.js";
80
80
  import {
81
81
  enkryptWallet
82
82
  } from "./chunk-HBQK5RD5.js";
83
- import {
84
- frameWallet
85
- } from "./chunk-BU3ZAT5X.js";
86
83
  import {
87
84
  frontierWallet
88
85
  } from "./chunk-AVDUNQUW.js";
89
- import {
90
- gateWallet
91
- } from "./chunk-JPN6TWIT.js";
92
86
  import {
93
87
  imTokenWallet
94
88
  } from "./chunk-WNAGGFMG.js";
95
89
  import {
96
- injectedWallet
97
- } from "./chunk-T6LGKC3F.js";
90
+ frameWallet
91
+ } from "./chunk-BU3ZAT5X.js";
98
92
  import {
99
93
  kresusWallet
100
94
  } from "./chunk-RICTB3FA.js";
95
+ import {
96
+ gateWallet
97
+ } from "./chunk-JPN6TWIT.js";
98
+ import {
99
+ injectedWallet
100
+ } from "./chunk-T6LGKC3F.js";
101
101
  import {
102
102
  ledgerWallet
103
103
  } from "./chunk-RPV27V2Y.js";
@@ -114,14 +114,14 @@ import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-2DLDAZRH.js";
116
116
  import {
117
- coreWallet
118
- } from "./chunk-4NV5BYRP.js";
117
+ desigWallet
118
+ } from "./chunk-FW3WZETT.js";
119
119
  import {
120
120
  dawnWallet
121
121
  } from "./chunk-G2PHTVL6.js";
122
122
  import {
123
- desigWallet
124
- } from "./chunk-FW3WZETT.js";
123
+ coreWallet
124
+ } from "./chunk-4NV5BYRP.js";
125
125
  import {
126
126
  foxWallet
127
127
  } from "./chunk-GUQM4QSL.js";
@@ -134,12 +134,12 @@ import {
134
134
  import {
135
135
  bitgetWallet
136
136
  } from "./chunk-TKB2OY6G.js";
137
- import {
138
- bitskiWallet
139
- } from "./chunk-7HRFUZFX.js";
140
137
  import {
141
138
  bitverseWallet
142
139
  } from "./chunk-NSK6A7TI.js";
140
+ import {
141
+ bitskiWallet
142
+ } from "./chunk-7HRFUZFX.js";
143
143
  import {
144
144
  bloomWallet
145
145
  } from "./chunk-PJ7Y57EH.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "11.6.0",
3
+ "version": "12.0.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -111,11 +111,11 @@
111
111
  "ua-parser-js": "^1.0.37",
112
112
  "use-debounce": "^10.0.5",
113
113
  "uuid": "^11.1.1",
114
- "@funkit/api-base": "7.2.0",
115
- "@funkit/chains": "2.2.0",
116
- "@funkit/connect-core": "4.1.1",
114
+ "@funkit/api-base": "7.3.0",
115
+ "@funkit/connect-core": "4.3.0",
117
116
  "@funkit/fun-relay": "2.14.1",
118
- "@funkit/utils": "4.0.1"
117
+ "@funkit/chains": "2.2.1",
118
+ "@funkit/utils": "4.0.3"
119
119
  },
120
120
  "repository": {
121
121
  "type": "git",