@funkit/connect 1.0.25 → 1.0.26

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 +13 -0
  2. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryContent.d.ts +8 -0
  3. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +2 -2
  4. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +2 -2
  5. package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +4 -2
  6. package/dist/components/FunNotification/FunCheckoutNotification.d.ts +3 -2
  7. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +2 -0
  8. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +60 -0
  9. package/dist/components/ProfileDetails/ActivityTraversalContext.d.ts +40 -0
  10. package/dist/components/ProfileDetails/FunProfileViews/ActivityHistory/ActivityHistory.d.ts +9 -1
  11. package/dist/components/ProfileDetails/FunProfileViews/Home/HomeCheckoutSection.d.ts +3 -2
  12. package/dist/components/ProfileDetails/FunProfileViews/Home/index.d.ts +9 -1
  13. package/dist/components/ProfileDetails/ProfileDetails.d.ts +2 -1
  14. package/dist/index.css +72 -72
  15. package/dist/index.d.ts +1 -2
  16. package/dist/index.js +9984 -9825
  17. package/dist/utils/checkoutHistory.d.ts +3 -3
  18. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/index.js +80 -80
  25. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  31. package/package.json +6 -6
  32. package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +0 -10
  33. package/dist/wallets/walletConnectors/chunk-4FQLUQNA.js +0 -96
  34. package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
  35. package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
  36. package/dist/wallets/walletConnectors/chunk-JLQ5HJYV.js +0 -94
  37. package/dist/wallets/walletConnectors/chunk-LVRXH33E.js +0 -92
  38. package/dist/wallets/walletConnectors/chunk-MIWCKFYE.js +0 -87
  39. package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
  40. package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
  41. package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
  42. package/dist/wallets/walletConnectors/chunk-Q4RLUJJD.js +0 -66
  43. package/dist/wallets/walletConnectors/chunk-SYELB4QO.js +0 -107
  44. package/dist/wallets/walletConnectors/chunk-ZBAQFL6G.js +0 -102
  45. package/dist/wallets/walletConnectors/chunk-ZUAHWUEL.js +0 -98
  46. package/dist/wallets/walletConnectors/{chunk-RYO26XSK.js → chunk-2B3SPBRY.js} +3 -3
  47. package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-7KDOXASH.js} +3 -3
  48. package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-CRSPGVPF.js} +3 -3
  49. package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-DV3SI63E.js} +3 -3
  50. package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-HD5VYJNC.js} +3 -3
  51. package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-KGTZ6E7L.js} +3 -3
  52. package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-RCWZ4KBR.js} +3 -3
  53. package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-VSZ7PAHS.js} +3 -3
  54. package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-XNNLZXHE.js} +3 -3
  55. package/dist/wallets/walletConnectors/{chunk-2XQJ2NQ4.js → chunk-XRMAVTK7.js} +3 -3
@@ -1,107 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-QII6PY2D.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-FDJRNZUU.js")).default,
81
- installed: isSafePalWalletInjected,
82
- iconAccent: "#3375BB",
83
- iconBackground: "#fff",
84
- downloadUrls: {
85
- android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
86
- ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
87
- mobile: "https://www.safepal.com/en/download",
88
- qrCode: "https://www.safepal.com/en/download",
89
- chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
90
- browserExtension: "https://www.safepal.com/download?product=2"
91
- },
92
- mobile: mobileConnector,
93
- ...qrConnector ? qrConnector : {},
94
- extension: extensionConnector,
95
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
96
- projectId,
97
- walletConnectParameters
98
- }) : getInjectedConnector({
99
- namespace: "safepalProvider",
100
- flag: "isSafePal"
101
- })
102
- };
103
- };
104
-
105
- export {
106
- safepalWallet
107
- };
@@ -1,102 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-QII6PY2D.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
- iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
78
- iconBackground: "#fff",
79
- installed: isSubWalletInjected || void 0,
80
- downloadUrls: {
81
- browserExtension: "https://www.subwallet.app/download",
82
- chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
83
- firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
84
- edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
85
- mobile: "https://www.subwallet.app/download",
86
- android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
87
- ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
88
- qrCode: "https://www.subwallet.app/download"
89
- },
90
- mobile: mobileConnector,
91
- qrCode: qrConnector,
92
- extension: extensionConnector,
93
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
94
- projectId,
95
- walletConnectParameters
96
- }) : getInjectedConnector({ namespace: "SubWallet" })
97
- };
98
- };
99
-
100
- export {
101
- subWallet
102
- };
@@ -1,98 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-QII6PY2D.js";
9
-
10
- // src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
11
- var bybitWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isBybitInjected = hasInjectedProvider({
16
- namespace: "bybitWallet"
17
- });
18
- const shouldUseWalletConnect = !isBybitInjected;
19
- const getUri = (uri) => {
20
- return `bybitapp://open/route?targetUrl=by://web3/walletconnect/wc?uri=${encodeURIComponent(
21
- uri
22
- )}`;
23
- };
24
- return {
25
- id: "bybit",
26
- name: "Bybit Wallet",
27
- rdns: "com.bybit",
28
- iconUrl: async () => (await import("./bybitWallet-O6NEYJRP.js")).default,
29
- installed: !shouldUseWalletConnect ? isBybitInjected : void 0,
30
- iconBackground: "#000000",
31
- downloadUrls: {
32
- chrome: "https://chromewebstore.google.com/detail/bybit-wallet/pdliaogehgdbhbnmkklieghmmjkpigpa",
33
- browserExtension: "https://www.bybit.com/en/web3",
34
- android: "https://play.google.com/store/apps/details?id=com.bybit.app",
35
- ios: "https://apps.apple.com/us/app/bybit-buy-trade-crypto/id1488296980",
36
- mobile: "https://www.bybit.com/en/web3",
37
- qrCode: "https://www.bybit.com/en/web3"
38
- },
39
- mobile: {
40
- getUri: shouldUseWalletConnect ? getUri : void 0
41
- },
42
- qrCode: shouldUseWalletConnect ? {
43
- getUri: (uri) => uri,
44
- instructions: {
45
- learnMoreUrl: "https://www.bybit.com/en/web3",
46
- steps: [
47
- {
48
- description: "wallet_connectors.bybit.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.bybit.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.bybit.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.bybit.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.bybit.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.bybit.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- } : void 0,
65
- extension: {
66
- instructions: {
67
- learnMoreUrl: "https://www.bybit.com/en/web3",
68
- steps: [
69
- {
70
- description: "wallet_connectors.bybit.extension.step1.description",
71
- step: "install",
72
- title: "wallet_connectors.bybit.extension.step1.title"
73
- },
74
- {
75
- description: "wallet_connectors.bybit.extension.step2.description",
76
- step: "create",
77
- title: "wallet_connectors.bybit.extension.step2.title"
78
- },
79
- {
80
- description: "wallet_connectors.bybit.extension.step3.description",
81
- step: "refresh",
82
- title: "wallet_connectors.bybit.extension.step3.title"
83
- }
84
- ]
85
- }
86
- },
87
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
- projectId,
89
- walletConnectParameters
90
- }) : getInjectedConnector({
91
- namespace: "bybitWallet"
92
- })
93
- };
94
- };
95
-
96
- export {
97
- bybitWallet
98
- };
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isAndroid
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
14
14
  var bitgetWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isMobile
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
14
14
  var tokenPocketWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isMobile
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/trustWallet/trustWallet.ts
14
14
  var trustWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isAndroid
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/okxWallet/okxWallet.ts
14
14
  var okxWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isAndroid
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
14
14
  var frontierWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isAndroid
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
14
14
  var bifrostWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isAndroid,
7
4
  isIOS
@@ -10,6 +7,9 @@ import {
10
7
  getInjectedConnector,
11
8
  hasInjectedProvider
12
9
  } from "./chunk-QII6PY2D.js";
10
+ import {
11
+ getWalletConnectConnector
12
+ } from "./chunk-ZDU3JFGR.js";
13
13
 
14
14
  // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
15
15
  var rainbowWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isAndroid
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/gateWallet/gateWallet.ts
14
14
  var gateWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isIOS
7
4
  } from "./chunk-ZOLACFTK.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-QII6PY2D.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
14
14
  var zerionWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  isAndroid,
7
4
  isIOS
@@ -10,6 +7,9 @@ import {
10
7
  getInjectedConnector,
11
8
  hasInjectedProvider
12
9
  } from "./chunk-QII6PY2D.js";
10
+ import {
11
+ getWalletConnectConnector
12
+ } from "./chunk-ZDU3JFGR.js";
13
13
 
14
14
  // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
15
15
  function isMetaMask(ethereum) {