@funkit/connect 0.1.7 → 0.1.8

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 (28) hide show
  1. package/dist/{chunk-X5YTL45L.js → chunk-KQXRSMJW.js} +1210 -1223
  2. package/dist/{chunk-VVHY6TFA.js → chunk-N5FOZIDQ.js} +1210 -1223
  3. package/dist/components/FunDivider/FunDivider.d.ts +3 -2
  4. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -1
  5. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +9 -4
  6. package/dist/components/FunkitProvider/FunkitProvider.d.ts +3 -15
  7. package/dist/components/index.js +1 -1
  8. package/dist/index.d.ts +1 -4
  9. package/dist/index.js +57 -113
  10. package/dist/wallets/walletConnectors/index.js +51 -51
  11. package/package.json +1 -1
  12. package/dist/components/ConnectModal/ConnectModalIntro.d.ts +0 -5
  13. package/dist/components/FunkitProvider/AppContext.d.ts +0 -25
  14. package/dist/components/FunkitProvider/ShowRecentTransactionsContext.d.ts +0 -2
  15. package/dist/wallets/walletConnectors/chunk-2T3BP5YM.js +0 -71
  16. package/dist/wallets/walletConnectors/chunk-3JTRMKJN.js +0 -71
  17. package/dist/wallets/walletConnectors/chunk-4AGSKVK4.js +0 -105
  18. package/dist/wallets/walletConnectors/chunk-4HP4HVWX.js +0 -112
  19. package/dist/wallets/walletConnectors/chunk-6GAD4OSN.js +0 -102
  20. package/dist/wallets/walletConnectors/chunk-7Q7X4HIR.js +0 -110
  21. package/dist/wallets/walletConnectors/chunk-CESIYSTD.js +0 -226
  22. package/dist/wallets/walletConnectors/chunk-DINSZSEC.js +0 -71
  23. package/dist/wallets/walletConnectors/chunk-MPVMJW2X.js +0 -113
  24. package/dist/wallets/walletConnectors/chunk-QVJQ2MU7.js +0 -117
  25. package/dist/wallets/walletConnectors/chunk-RAKDFYVF.js +0 -81
  26. package/dist/wallets/walletConnectors/chunk-T2DNUVKD.js +0 -114
  27. package/dist/wallets/walletConnectors/chunk-TM5A4D5D.js +0 -52
  28. package/dist/wallets/walletConnectors/chunk-VDUTD5UR.js +0 -84
@@ -1,81 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-4ACOCJJZ.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var bifrostWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isBifrostInjected = typeof window !== "undefined" && typeof window.ethereum !== "undefined" && window.ethereum.isBifrost;
20
- const shouldUseWalletConnect = !isBifrostInjected;
21
- return {
22
- id: "bifrostWallet",
23
- name: "Bifrost Wallet",
24
- iconUrl: async () => (await import("./bifrostWallet-5VPKXMCJ.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
- createConnector: () => {
33
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
34
- chains,
35
- projectId,
36
- options: walletConnectOptions,
37
- version: walletConnectVersion
38
- }) : new InjectedConnector({
39
- chains,
40
- options
41
- });
42
- const getUri = async () => {
43
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
44
- return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
45
- };
46
- return {
47
- connector,
48
- mobile: {
49
- getUri: shouldUseWalletConnect ? getUri : void 0
50
- },
51
- qrCode: shouldUseWalletConnect ? {
52
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
53
- instructions: {
54
- learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
55
- steps: [
56
- {
57
- description: "wallet_connectors.bifrost.qr_code.step1.description",
58
- step: "install",
59
- title: "wallet_connectors.bifrost.qr_code.step1.title"
60
- },
61
- {
62
- description: "wallet_connectors.bifrost.qr_code.step2.description",
63
- step: "create",
64
- title: "wallet_connectors.bifrost.qr_code.step2.title"
65
- },
66
- {
67
- description: "wallet_connectors.bifrost.qr_code.step3.description",
68
- step: "scan",
69
- title: "wallet_connectors.bifrost.qr_code.step3.title"
70
- }
71
- ]
72
- }
73
- } : void 0
74
- };
75
- }
76
- };
77
- };
78
-
79
- export {
80
- bifrostWallet
81
- };
@@ -1,114 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-4ACOCJJZ.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var frontierWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isFrontierInjected = typeof window !== "undefined" && typeof window.frontier !== "undefined" && window?.frontier?.ethereum?.isFrontier;
20
- return {
21
- id: "frontier",
22
- name: "Frontier Wallet",
23
- installed: typeof window !== "undefined" && typeof window.frontier !== "undefined" && window?.frontier?.ethereum?.isFrontier ? true : void 0,
24
- iconUrl: async () => (await import("./frontierWallet-3CNZ2ST5.js")).default,
25
- iconBackground: "#CC703C",
26
- downloadUrls: {
27
- android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
28
- ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
29
- qrCode: "https://www.frontier.xyz/download",
30
- chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
31
- browserExtension: "https://www.frontier.xyz/download"
32
- },
33
- createConnector: () => {
34
- const shouldUseWalletConnect = !isFrontierInjected;
35
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
36
- chains,
37
- projectId,
38
- options: walletConnectOptions,
39
- version: walletConnectVersion
40
- }) : new InjectedConnector({ chains });
41
- const getUri = async () => {
42
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
43
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
44
- };
45
- return {
46
- connector: new InjectedConnector({
47
- chains,
48
- options: {
49
- getProvider: () => {
50
- const getFront = (frontier) => frontier?.ethereum ? frontier?.ethereum : void 0;
51
- if (typeof window === "undefined") {
52
- return;
53
- }
54
- return getFront(window.frontier);
55
- },
56
- ...options
57
- }
58
- }),
59
- mobile: {
60
- getUri: shouldUseWalletConnect ? getUri : void 0
61
- },
62
- qrCode: shouldUseWalletConnect ? {
63
- getUri,
64
- instructions: {
65
- learnMoreUrl: "https://help.frontier.xyz/en/",
66
- steps: [
67
- {
68
- description: "wallet_connectors.im_token.qr_code.step1.description",
69
- step: "install",
70
- title: "wallet_connectors.im_token.qr_code.step1.title"
71
- },
72
- {
73
- description: "wallet_connectors.im_token.qr_code.step2.description",
74
- step: "create",
75
- title: "wallet_connectors.im_token.qr_code.step2.title"
76
- },
77
- {
78
- description: "wallet_connectors.im_token.qr_code.step3.description",
79
- step: "scan",
80
- title: "wallet_connectors.im_token.qr_code.step3.title"
81
- }
82
- ]
83
- }
84
- } : void 0,
85
- extension: {
86
- instructions: {
87
- learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
88
- steps: [
89
- {
90
- description: "wallet_connectors.frontier.extension.step1.description",
91
- step: "install",
92
- title: "wallet_connectors.frontier.extension.step1.title"
93
- },
94
- {
95
- description: "wallet_connectors.frontier.extension.step2.description",
96
- step: "create",
97
- title: "wallet_connectors.frontier.extension.step2.title"
98
- },
99
- {
100
- description: "wallet_connectors.frontier.extension.step3.description",
101
- step: "refresh",
102
- title: "wallet_connectors.frontier.extension.step3.title"
103
- }
104
- ]
105
- }
106
- }
107
- };
108
- }
109
- };
110
- };
111
-
112
- export {
113
- frontierWallet
114
- };
@@ -1,52 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-4ACOCJJZ.js";
6
- import {
7
- isIOS
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.ts
11
- var walletConnectWallet = ({
12
- chains,
13
- options,
14
- projectId,
15
- version = "2"
16
- }) => ({
17
- id: "walletConnect",
18
- name: "WalletConnect",
19
- iconUrl: async () => (await import("./walletConnectWallet-D6ZADJM7.js")).default,
20
- iconBackground: "#3b99fc",
21
- createConnector: () => {
22
- const ios = isIOS();
23
- const connector = version === "1" ? getWalletConnectConnector({
24
- version: "1",
25
- chains,
26
- options: {
27
- qrcode: ios,
28
- ...options
29
- }
30
- }) : getWalletConnectConnector({
31
- version: "2",
32
- chains,
33
- projectId,
34
- options: {
35
- showQrModal: ios,
36
- ...options
37
- }
38
- });
39
- const getUri = async () => getWalletConnectUri(connector, version);
40
- return {
41
- connector,
42
- ...ios ? {} : {
43
- mobile: { getUri },
44
- qrCode: { getUri }
45
- }
46
- };
47
- }
48
- });
49
-
50
- export {
51
- walletConnectWallet
52
- };
@@ -1,84 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-4ACOCJJZ.js";
6
- import {
7
- getInjectedConnector,
8
- hasInjectedProvider
9
- } from "./chunk-UZ5XLPAW.js";
10
- import {
11
- isAndroid,
12
- isIOS
13
- } from "./chunk-ZOLACFTK.js";
14
-
15
- // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
16
- var rainbowWallet = ({
17
- chains,
18
- projectId,
19
- walletConnectOptions,
20
- walletConnectVersion = "2",
21
- ...options
22
- }) => {
23
- const isRainbowInjected = hasInjectedProvider("isRainbow");
24
- const shouldUseWalletConnect = !isRainbowInjected;
25
- return {
26
- id: "rainbow",
27
- name: "Rainbow",
28
- iconUrl: async () => (await import("./rainbowWallet-GGU64QEI.js")).default,
29
- iconBackground: "#0c2f78",
30
- installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
31
- downloadUrls: {
32
- android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
33
- ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
34
- mobile: "https://rainbow.download?utm_source=rainbowkit",
35
- qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
36
- browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
37
- },
38
- createConnector: () => {
39
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
40
- projectId,
41
- chains,
42
- version: walletConnectVersion,
43
- options: walletConnectOptions
44
- }) : getInjectedConnector({ flag: "isRainbow", chains, options });
45
- const getUri = async () => {
46
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
47
- return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
48
- uri
49
- )}&connector=rainbowkit`;
50
- };
51
- return {
52
- connector,
53
- mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
54
- qrCode: shouldUseWalletConnect ? {
55
- getUri,
56
- instructions: {
57
- learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
58
- steps: [
59
- {
60
- description: "wallet_connectors.rainbow.qr_code.step1.description",
61
- step: "install",
62
- title: "wallet_connectors.rainbow.qr_code.step1.title"
63
- },
64
- {
65
- description: "wallet_connectors.rainbow.qr_code.step2.description",
66
- step: "create",
67
- title: "wallet_connectors.rainbow.qr_code.step2.title"
68
- },
69
- {
70
- description: "wallet_connectors.rainbow.qr_code.step3.description",
71
- step: "scan",
72
- title: "wallet_connectors.rainbow.qr_code.step3.title"
73
- }
74
- ]
75
- }
76
- } : void 0
77
- };
78
- }
79
- };
80
- };
81
-
82
- export {
83
- rainbowWallet
84
- };