@funkit/connect 10.1.0-next.0 → 10.1.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 (55) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/clients/{chunk-ETB2YYFT.js → chunk-2NBYHUIW.js} +1 -1
  3. package/dist/clients/{chunk-JNZY3GAA.js → chunk-E3USJY7A.js} +1 -1
  4. package/dist/clients/{chunk-HD4Y4NKC.js → chunk-ZAXSDMDU.js} +2 -2
  5. package/dist/clients/fanatics.css +1 -1
  6. package/dist/clients/fanatics.js +2 -2
  7. package/dist/clients/lighter.css +11 -11
  8. package/dist/clients/lighter.js +3 -3
  9. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +11 -11
  10. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +3 -3
  11. package/dist/clients/polymarket/index.css +11 -11
  12. package/dist/clients/polymarket/index.js +3 -3
  13. package/dist/index.css +11 -11
  14. package/dist/index.js +73 -86
  15. package/dist/utils/checkout.d.ts +1 -1
  16. package/dist/wallets/walletConnectors/index.js +46 -46
  17. package/package.json +4 -4
  18. package/dist/clients/chunk-42XZD2Y3.js +0 -1112
  19. package/dist/clients/chunk-5UIZBNLC.js +0 -1175
  20. package/dist/clients/chunk-BO7AZVPG.js +0 -1112
  21. package/dist/clients/chunk-BUCJRBW7.js +0 -1472
  22. package/dist/clients/chunk-ME4OAQIY.js +0 -696
  23. package/dist/clients/chunk-PEVDOGEA.js +0 -109
  24. package/dist/clients/chunk-QIWGVVAW.js +0 -1113
  25. package/dist/clients/chunk-VJZW3MA3.js +0 -94
  26. package/dist/clients/chunk-WEETVC7U.js +0 -1113
  27. package/dist/clients/chunk-Y2KXVS36.js +0 -230
  28. package/dist/clients/polymarket/usePolymarketAccountBalances.d.ts +0 -66
  29. package/dist/hooks/useIsTokenWhitelisted.d.ts +0 -30
  30. package/dist/modals/CheckoutModal/buildRelayChains.d.ts +0 -12
  31. package/dist/providers/FunkitFlagsProvider.d.ts +0 -26
  32. package/dist/utils/flags/config.d.ts +0 -333
  33. package/dist/utils/flags/endpoint.d.ts +0 -22
  34. package/dist/utils/flags/hash.d.ts +0 -13
  35. package/dist/utils/flags/impl.d.ts +0 -10
  36. package/dist/utils/flags/types.d.ts +0 -49
  37. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +0 -70
  38. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +0 -69
  39. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +0 -96
  40. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +0 -218
  41. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +0 -99
  42. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +0 -98
  43. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +0 -92
  44. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +0 -93
  45. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +0 -66
  46. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +0 -95
  47. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +0 -100
  48. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +0 -94
  49. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +0 -87
  50. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +0 -92
  51. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +0 -110
  52. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +0 -103
  53. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +0 -96
  54. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +0 -106
  55. /package/dist/clients/{chunk-HMP3LHMW.js → chunk-LUHEVXPD.js} +0 -0
@@ -1,96 +0,0 @@
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
- };
@@ -1,106 +0,0 @@
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
- };