@funkit/connect 0.1.13 → 0.1.15

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 (30) hide show
  1. package/dist/{chunk-UOUEGWLS.js → chunk-47OHV4T2.js} +2 -2
  2. package/dist/{chunk-Q73FKLU4.js → chunk-C2QHNJBG.js} +2 -2
  3. package/dist/{chunk-BQU2NRO5.js → chunk-IDQLTS4C.js} +231 -98
  4. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
  5. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +2 -1
  6. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +8 -4
  7. package/dist/components/FunkitProvider/ModalContext.d.ts +1 -1
  8. package/dist/components/index.js +3 -3
  9. package/dist/hooks/useCheckoutType.d.ts +5 -0
  10. package/dist/hooks/useFunListeners.d.ts +2 -1
  11. package/dist/index.js +3 -3
  12. package/dist/themes/darkTheme.js +1 -1
  13. package/dist/themes/lightTheme.js +1 -1
  14. package/dist/utils/checkout.d.ts +1 -0
  15. package/dist/wallets/walletConnectors/index.js +41 -41
  16. package/package.json +4 -4
  17. package/dist/wallets/walletConnectors/chunk-2XHTO74O.js +0 -226
  18. package/dist/wallets/walletConnectors/chunk-4WS4ZSRN.js +0 -84
  19. package/dist/wallets/walletConnectors/chunk-BDKAIAQA.js +0 -71
  20. package/dist/wallets/walletConnectors/chunk-DBMFZSXN.js +0 -52
  21. package/dist/wallets/walletConnectors/chunk-FTTYELWN.js +0 -71
  22. package/dist/wallets/walletConnectors/chunk-JJICTRJY.js +0 -114
  23. package/dist/wallets/walletConnectors/chunk-KUXG7P5Q.js +0 -102
  24. package/dist/wallets/walletConnectors/chunk-LBSWP7R6.js +0 -81
  25. package/dist/wallets/walletConnectors/chunk-MDDT3PSR.js +0 -110
  26. package/dist/wallets/walletConnectors/chunk-Q6N2YWW4.js +0 -112
  27. package/dist/wallets/walletConnectors/chunk-RL5OHS6R.js +0 -113
  28. package/dist/wallets/walletConnectors/chunk-TORM2ZGA.js +0 -117
  29. package/dist/wallets/walletConnectors/chunk-VAR774R5.js +0 -105
  30. package/dist/wallets/walletConnectors/chunk-X6A7D2EA.js +0 -71
@@ -1,112 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-6T5K52ZY.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var bitgetWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isBitKeepInjected = typeof window !== "undefined" && window.bitkeep !== void 0 && window.bitkeep.ethereum !== void 0 && window.bitkeep.ethereum.isBitKeep === true;
20
- const shouldUseWalletConnect = !isBitKeepInjected;
21
- return {
22
- id: "bitget",
23
- name: "Bitget Wallet",
24
- iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
25
- iconAccent: "#f6851a",
26
- iconBackground: "#fff",
27
- installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
28
- downloadUrls: {
29
- android: "https://web3.bitget.com/en/wallet-download?type=0",
30
- ios: "https://apps.apple.com/app/bitkeep/id1395301115",
31
- mobile: "https://web3.bitget.com/en/wallet-download?type=2",
32
- qrCode: "https://web3.bitget.com/en/wallet-download",
33
- chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
34
- browserExtension: "https://web3.bitget.com/en/wallet-download"
35
- },
36
- createConnector: () => {
37
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
38
- chains,
39
- options: walletConnectOptions,
40
- projectId,
41
- version: walletConnectVersion
42
- }) : new InjectedConnector({
43
- chains,
44
- options: {
45
- getProvider: () => window.bitkeep.ethereum,
46
- ...options
47
- }
48
- });
49
- const getUri = async () => {
50
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
51
- return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
52
- };
53
- return {
54
- connector,
55
- extension: {
56
- instructions: {
57
- learnMoreUrl: "https://web3.bitget.com/en/academy",
58
- steps: [
59
- {
60
- description: "wallet_connectors.bitget.extension.step1.description",
61
- step: "install",
62
- title: "wallet_connectors.bitget.extension.step1.title"
63
- },
64
- {
65
- description: "wallet_connectors.bitget.extension.step2.description",
66
- step: "create",
67
- title: "wallet_connectors.bitget.extension.step2.title"
68
- },
69
- {
70
- description: "wallet_connectors.bitget.extension.step3.description",
71
- step: "refresh",
72
- title: "wallet_connectors.bitget.extension.step3.description"
73
- }
74
- ]
75
- }
76
- },
77
- mobile: {
78
- getUri: shouldUseWalletConnect ? getUri : void 0
79
- },
80
- qrCode: shouldUseWalletConnect ? {
81
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
82
- instructions: {
83
- learnMoreUrl: "https://web3.bitget.com/en/academy",
84
- steps: [
85
- {
86
- description: "wallet_connectors.bitget.qr_code.step1.description",
87
- step: "install",
88
- title: "wallet_connectors.bitget.qr_code.step1.title"
89
- },
90
- {
91
- description: "wallet_connectors.bitget.qr_code.step2.description",
92
- step: "create",
93
- title: "wallet_connectors.bitget.qr_code.step2.title"
94
- },
95
- {
96
- description: "wallet_connectors.bitget.qr_code.step3.description",
97
- step: "scan",
98
- title: "wallet_connectors.bitget.qr_code.step3.title"
99
- }
100
- ]
101
- }
102
- } : void 0
103
- };
104
- }
105
- };
106
- };
107
- var bitKeepWallet = bitgetWallet;
108
-
109
- export {
110
- bitgetWallet,
111
- bitKeepWallet
112
- };
@@ -1,113 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-6T5K52ZY.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var okxWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isOKXInjected = typeof window !== "undefined" && typeof window.okxwallet !== "undefined";
20
- const shouldUseWalletConnect = !isOKXInjected;
21
- return {
22
- id: "okx",
23
- name: "OKX Wallet",
24
- iconUrl: async () => (await import("./okxWallet-GKYMI2XW.js")).default,
25
- iconAccent: "#000",
26
- iconBackground: "#000",
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
29
- ios: "https://itunes.apple.com/app/id1327268470?mt=8",
30
- mobile: "https://okx.com/download",
31
- qrCode: "https://okx.com/download",
32
- chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
33
- edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
34
- firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
35
- browserExtension: "https://okx.com/download"
36
- },
37
- createConnector: () => {
38
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
39
- projectId,
40
- chains,
41
- version: walletConnectVersion,
42
- options: walletConnectOptions
43
- }) : new InjectedConnector({
44
- chains,
45
- options: {
46
- getProvider: () => window.okxwallet,
47
- ...options
48
- }
49
- });
50
- return {
51
- connector,
52
- mobile: {
53
- getUri: shouldUseWalletConnect ? async () => {
54
- const uri = await getWalletConnectUri(
55
- connector,
56
- walletConnectVersion
57
- );
58
- return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
59
- } : void 0
60
- },
61
- qrCode: shouldUseWalletConnect ? {
62
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
63
- instructions: {
64
- learnMoreUrl: "https://okx.com/web3/",
65
- steps: [
66
- {
67
- description: "wallet_connectors.okx.qr_code.step1.description",
68
- step: "install",
69
- title: "wallet_connectors.okx.qr_code.step1.title"
70
- },
71
- {
72
- description: "wallet_connectors.okx.qr_code.step2.description",
73
- step: "create",
74
- title: "wallet_connectors.okx.qr_code.step2.title"
75
- },
76
- {
77
- description: "wallet_connectors.okx.qr_code.step3.description",
78
- step: "scan",
79
- title: "wallet_connectors.okx.qr_code.step3.title"
80
- }
81
- ]
82
- }
83
- } : void 0,
84
- extension: {
85
- instructions: {
86
- learnMoreUrl: "https://okx.com/web3/",
87
- steps: [
88
- {
89
- description: "wallet_connectors.okx.extension.step1.description",
90
- step: "install",
91
- title: "wallet_connectors.okx.extension.step1.title"
92
- },
93
- {
94
- description: "wallet_connectors.okx.extension.step2.description",
95
- step: "create",
96
- title: "wallet_connectors.okx.extension.step2.title"
97
- },
98
- {
99
- description: "wallet_connectors.okx.extension.step3.description",
100
- step: "refresh",
101
- title: "wallet_connectors.okx.extension.step3.title"
102
- }
103
- ]
104
- }
105
- }
106
- };
107
- }
108
- };
109
- };
110
-
111
- export {
112
- okxWallet
113
- };
@@ -1,117 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-6T5K52ZY.js";
6
- import {
7
- getInjectedConnector,
8
- hasInjectedProvider
9
- } from "./chunk-UZ5XLPAW.js";
10
- import {
11
- isMobile
12
- } from "./chunk-ZOLACFTK.js";
13
-
14
- // src/wallets/walletConnectors/trustWallet/trustWallet.ts
15
- var trustWallet = ({
16
- chains,
17
- projectId,
18
- walletConnectOptions,
19
- walletConnectVersion = "2",
20
- ...options
21
- }) => {
22
- const isTrustWalletInjected = isMobile() ? hasInjectedProvider("isTrust") : hasInjectedProvider("isTrustWallet");
23
- const shouldUseWalletConnect = !isTrustWalletInjected;
24
- return {
25
- id: "trust",
26
- name: "Trust Wallet",
27
- iconUrl: async () => (await import("./trustWallet-XIQD5AVI.js")).default,
28
- installed: isTrustWalletInjected || void 0,
29
- iconAccent: "#3375BB",
30
- iconBackground: "#fff",
31
- downloadUrls: {
32
- android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
33
- ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
34
- mobile: "https://trustwallet.com/download",
35
- qrCode: "https://trustwallet.com/download",
36
- chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
37
- browserExtension: "https://trustwallet.com/browser-extension"
38
- },
39
- createConnector: () => {
40
- const getUriMobile = async () => {
41
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
42
- return `trust://wc?uri=${encodeURIComponent(uri)}`;
43
- };
44
- const getUriQR = async () => {
45
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
46
- return uri;
47
- };
48
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
49
- projectId,
50
- chains,
51
- version: walletConnectVersion,
52
- options: walletConnectOptions
53
- }) : isMobile() ? getInjectedConnector({ flag: "isTrust", chains, options }) : getInjectedConnector({ flag: "isTrustWallet", chains, options });
54
- const mobileConnector = {
55
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
56
- };
57
- let qrConnector = void 0;
58
- if (shouldUseWalletConnect) {
59
- qrConnector = {
60
- getUri: getUriQR,
61
- instructions: {
62
- learnMoreUrl: "https://trustwallet.com/",
63
- steps: [
64
- {
65
- description: "wallet_connectors.trust.qr_code.step1.description",
66
- step: "install",
67
- title: "wallet_connectors.trust.qr_code.step1.title"
68
- },
69
- {
70
- description: "wallet_connectors.trust.qr_code.step2.description",
71
- step: "create",
72
- title: "wallet_connectors.trust.qr_code.step2.title"
73
- },
74
- {
75
- description: "wallet_connectors.trust.qr_code.step3.description",
76
- step: "scan",
77
- title: "wallet_connectors.trust.qr_code.step3.title"
78
- }
79
- ]
80
- }
81
- };
82
- }
83
- const extensionConnector = {
84
- instructions: {
85
- learnMoreUrl: "https://trustwallet.com/browser-extension",
86
- steps: [
87
- {
88
- description: "wallet_connectors.trust.extension.step1.description",
89
- step: "install",
90
- title: "wallet_connectors.trust.extension.step1.title"
91
- },
92
- {
93
- description: "wallet_connectors.trust.extension.step2.description",
94
- step: "create",
95
- title: "wallet_connectors.trust.extension.step2.title"
96
- },
97
- {
98
- description: "wallet_connectors.trust.extension.step3.description",
99
- step: "refresh",
100
- title: "wallet_connectors.trust.extension.step3.title"
101
- }
102
- ]
103
- }
104
- };
105
- return {
106
- connector,
107
- mobile: mobileConnector,
108
- qrCode: qrConnector,
109
- extension: extensionConnector
110
- };
111
- }
112
- };
113
- };
114
-
115
- export {
116
- trustWallet
117
- };
@@ -1,105 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-6T5K52ZY.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/ledgerWallet/ledgerWallet.ts
11
- var ledgerWallet = ({
12
- chains,
13
- projectId,
14
- walletConnectOptions,
15
- walletConnectVersion = "2"
16
- }) => ({
17
- id: "ledger",
18
- iconBackground: "#000",
19
- iconAccent: "#000",
20
- name: "Ledger",
21
- iconUrl: async () => (await import("./ledgerWallet-DIS4VM6H.js")).default,
22
- downloadUrls: {
23
- android: "https://play.google.com/store/apps/details?id=com.ledger.live",
24
- ios: "https://apps.apple.com/us/app/ledger-live-web3-wallet/id1361671700",
25
- mobile: "https://www.ledger.com/ledger-live",
26
- qrCode: "https://r354.adj.st/?adj_t=t2esmlk",
27
- windows: "https://www.ledger.com/ledger-live/download",
28
- macos: "https://www.ledger.com/ledger-live/download",
29
- linux: "https://www.ledger.com/ledger-live/download",
30
- desktop: "https://www.ledger.com/ledger-live"
31
- },
32
- createConnector: () => {
33
- const connector = getWalletConnectConnector({
34
- projectId,
35
- chains,
36
- version: walletConnectVersion,
37
- options: walletConnectOptions
38
- });
39
- return {
40
- connector,
41
- mobile: {
42
- getUri: async () => {
43
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
44
- return isAndroid() ? uri : `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
45
- }
46
- },
47
- desktop: {
48
- getUri: async () => {
49
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
50
- return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
51
- },
52
- instructions: {
53
- learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
54
- steps: [
55
- {
56
- description: "wallet_connectors.ledger.desktop.step1.description",
57
- step: "install",
58
- title: "wallet_connectors.ledger.desktop.step1.title"
59
- },
60
- {
61
- description: "wallet_connectors.ledger.desktop.step2.description",
62
- step: "create",
63
- title: "wallet_connectors.ledger.desktop.step2.title"
64
- },
65
- {
66
- description: "wallet_connectors.ledger.desktop.step3.description",
67
- step: "connect",
68
- title: "wallet_connectors.ledger.desktop.step3.title"
69
- }
70
- ]
71
- }
72
- },
73
- qrCode: {
74
- getUri: async () => {
75
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
76
- return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
77
- },
78
- instructions: {
79
- learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
80
- steps: [
81
- {
82
- description: "wallet_connectors.ledger.qr_code.step1.description",
83
- step: "install",
84
- title: "wallet_connectors.ledger.qr_code.step1.title"
85
- },
86
- {
87
- description: "wallet_connectors.ledger.qr_code.step2.description",
88
- step: "create",
89
- title: "wallet_connectors.ledger.qr_code.step2.title"
90
- },
91
- {
92
- description: "wallet_connectors.ledger.qr_code.step3.description",
93
- step: "scan",
94
- title: "wallet_connectors.ledger.qr_code.step3.title"
95
- }
96
- ]
97
- }
98
- }
99
- };
100
- }
101
- });
102
-
103
- export {
104
- ledgerWallet
105
- };
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-6T5K52ZY.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/omniWallet/omniWallet.ts
11
- var omniWallet = ({
12
- chains,
13
- projectId,
14
- walletConnectOptions,
15
- walletConnectVersion = "2"
16
- }) => ({
17
- id: "omni",
18
- name: "Omni",
19
- iconUrl: async () => (await import("./omniWallet-VF54LPLK.js")).default,
20
- iconBackground: "#000",
21
- downloadUrls: {
22
- android: "https://play.google.com/store/apps/details?id=fi.steakwallet.app",
23
- ios: "https://itunes.apple.com/us/app/id1569375204",
24
- mobile: "https://omniwallet.app.link",
25
- qrCode: "https://omniwallet.app.link"
26
- },
27
- createConnector: () => {
28
- const connector = getWalletConnectConnector({
29
- projectId,
30
- chains,
31
- version: walletConnectVersion,
32
- options: walletConnectOptions
33
- });
34
- return {
35
- connector,
36
- mobile: {
37
- getUri: async () => {
38
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
39
- return isAndroid() ? uri : `omni://wc?uri=${encodeURIComponent(uri)}`;
40
- }
41
- },
42
- qrCode: {
43
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
44
- instructions: {
45
- learnMoreUrl: "https://omni.app/support",
46
- steps: [
47
- {
48
- description: "wallet_connectors.omni.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.omni.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.omni.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.omni.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.omni.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.omni.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- }
65
- };
66
- }
67
- });
68
-
69
- export {
70
- omniWallet
71
- };