@funkit/connect 1.0.4 → 1.0.5

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 (65) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/components/Box/Box.d.ts +1 -1
  3. package/dist/components/FunBadge/FunBadge.d.ts +4 -0
  4. package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -1
  5. package/dist/components/FunDivider/FunDivider.d.ts +2 -1
  6. package/dist/components/FunDot/FunDot.d.ts +2 -0
  7. package/dist/components/FunNotification/FunNotification.d.ts +2 -2
  8. package/dist/components/FunSelect/FunSelect.d.ts +1 -0
  9. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -0
  10. package/dist/components/FunkitProvider/FunkitMeshProvider.d.ts +20 -0
  11. package/dist/css/sprinkles.css.d.ts +1 -1
  12. package/dist/index.css +1332 -1328
  13. package/dist/index.js +1983 -1746
  14. package/dist/utils/formatTimestamp.d.ts +11 -0
  15. package/dist/utils/mesh.d.ts +1 -0
  16. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/index.js +80 -80
  23. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  32. package/package.json +3 -3
  33. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
  34. package/dist/wallets/walletConnectors/chunk-2XQJ2NQ4.js +0 -178
  35. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
  36. package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
  37. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
  38. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
  39. package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
  40. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
  41. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
  42. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
  43. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
  44. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
  45. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
  46. package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
  47. package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
  48. package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
  49. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
  50. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
  51. package/dist/wallets/walletConnectors/chunk-RYO26XSK.js +0 -100
  52. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
  53. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
  54. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
  55. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
  56. package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-2UXZAUWT.js} +3 -3
  57. package/dist/wallets/walletConnectors/{chunk-XRMAVTK7.js → chunk-3WZRNEZH.js} +3 -3
  58. package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-6LTLPR2Q.js} +3 -3
  59. package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-7CQPABJG.js} +3 -3
  60. package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-AM4SSLAP.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-NGXIHASN.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-O5NKWWEG.js} +3 -3
  63. package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-V45EXW7A.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-Z2DGDHHZ.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-2B3SPBRY.js → chunk-ZNXQ4V6G.js} +3 -3
@@ -1 +1,12 @@
1
1
  export declare function formatTimestamp(date: Date, shortened?: boolean): string;
2
+ /**
3
+ * Formats seconds to mins and seconds string
4
+ * - seconds = 10, output = '10s'
5
+ * - seconds = 20.3, output = '21s'
6
+ * - seconds = 20.3, specifyUnderMinute=true, output = '< 1min'
7
+ * - seconds = 60, output = '1min'
8
+ * - seconds = 61, output = '1min 1s'
9
+ * - seconds = 300, output = '5mins'
10
+ * - seconds = 320, output = '5mins 20s'
11
+ */
12
+ export declare function formatSecondsToReadableForm(seconds: number, specifyUnderMinute?: boolean): string;
@@ -1,3 +1,4 @@
1
+ export declare const FUNKIT_MESH_CLIENT_ID = "e1880c6d-5af8-4634-3182-08dba58a99a5";
1
2
  export declare enum MeshExchanges {
2
3
  Robinhood = "Robinhood",
3
4
  ETrade = "ETrade",
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  argentWallet
4
- } from "../chunk-CVGDYGHA.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-NZ5G23JP.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  argentWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-MU35GKP3.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-6LTLPR2Q.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-RYO26XSK.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-ZNXQ4V6G.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bloomWallet
4
- } from "../chunk-OYW4TIA3.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-NTGZF5BY.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  bloomWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-SPLW3CCH.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-AM4SSLAP.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  frontierWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-HXYRONSJ.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-V45EXW7A.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  gateWallet
@@ -1,37 +1,37 @@
1
1
  "use client";
2
+ import {
3
+ zerionWallet
4
+ } from "./chunk-7CQPABJG.js";
2
5
  import {
3
6
  xdefiWallet
4
7
  } from "./chunk-L734HTUS.js";
5
8
  import {
6
- zerionWallet
7
- } from "./chunk-MCTPLICE.js";
9
+ uniswapWallet
10
+ } from "./chunk-XRSY4JVH.js";
8
11
  import {
9
- zealWallet
10
- } from "./chunk-DPXMP5KS.js";
12
+ tokenPocketWallet
13
+ } from "./chunk-2UXZAUWT.js";
11
14
  import {
12
- safeWallet
13
- } from "./chunk-D3DCQ72J.js";
15
+ safeheronWallet
16
+ } from "./chunk-63NPZXAL.js";
14
17
  import {
15
- tokenPocketWallet
16
- } from "./chunk-PPFSHJTA.js";
18
+ omniWallet
19
+ } from "./chunk-SVN7OEQR.js";
17
20
  import {
18
- talismanWallet
19
- } from "./chunk-H273OTQA.js";
21
+ safepalWallet
22
+ } from "./chunk-SYELB4QO.js";
20
23
  import {
21
- trustWallet
22
- } from "./chunk-ZFXXHGAS.js";
24
+ tokenaryWallet
25
+ } from "./chunk-ENZLEAG2.js";
23
26
  import {
24
27
  walletConnectWallet
25
28
  } from "./chunk-ASPRR7T3.js";
26
29
  import {
27
- uniswapWallet
28
- } from "./chunk-XRSY4JVH.js";
29
- import {
30
- tahoWallet
31
- } from "./chunk-H76YCX2M.js";
30
+ zealWallet
31
+ } from "./chunk-DPXMP5KS.js";
32
32
  import {
33
- tokenaryWallet
34
- } from "./chunk-ENZLEAG2.js";
33
+ trustWallet
34
+ } from "./chunk-Z2DGDHHZ.js";
35
35
  import {
36
36
  phantomWallet
37
37
  } from "./chunk-KGBLSE7L.js";
@@ -39,53 +39,47 @@ import {
39
39
  rabbyWallet
40
40
  } from "./chunk-XPEBP6XV.js";
41
41
  import {
42
- ramperWallet
43
- } from "./chunk-ZOL6ZMTJ.js";
44
- import {
45
- subWallet
46
- } from "./chunk-ZBAQFL6G.js";
42
+ rainbowWallet
43
+ } from "./chunk-O5NKWWEG.js";
47
44
  import {
48
- safepalWallet
49
- } from "./chunk-SYELB4QO.js";
45
+ safeWallet
46
+ } from "./chunk-D3DCQ72J.js";
50
47
  import {
51
48
  roninWallet
52
49
  } from "./chunk-LVRXH33E.js";
53
50
  import {
54
- safeheronWallet
55
- } from "./chunk-63NPZXAL.js";
51
+ tahoWallet
52
+ } from "./chunk-H76YCX2M.js";
56
53
  import {
57
- rainbowWallet
58
- } from "./chunk-DNOEX5NF.js";
54
+ subWallet
55
+ } from "./chunk-ZBAQFL6G.js";
59
56
  import {
60
- ledgerWallet
61
- } from "./chunk-AJKRYTH2.js";
57
+ talismanWallet
58
+ } from "./chunk-H273OTQA.js";
62
59
  import {
63
- mewWallet
64
- } from "./chunk-PWYTDYBE.js";
60
+ oneInchWallet
61
+ } from "./chunk-LCPIZUR3.js";
65
62
  import {
66
63
  okxWallet
67
- } from "./chunk-2LY3WMXK.js";
68
- import {
69
- oneKeyWallet
70
- } from "./chunk-4WOV4ITL.js";
71
- import {
72
- omniWallet
73
- } from "./chunk-OYKWP3N3.js";
64
+ } from "./chunk-NGXIHASN.js";
74
65
  import {
75
- oneInchWallet
76
- } from "./chunk-LCPIZUR3.js";
66
+ kresusWallet
67
+ } from "./chunk-X6T3CICZ.js";
77
68
  import {
78
69
  injectedWallet
79
70
  } from "./chunk-KIHCNUU3.js";
80
71
  import {
81
- oktoWallet
82
- } from "./chunk-OKZSWAPF.js";
72
+ metaMaskWallet
73
+ } from "./chunk-3WZRNEZH.js";
83
74
  import {
84
- enkryptWallet
85
- } from "./chunk-FLY7F4XA.js";
75
+ oneKeyWallet
76
+ } from "./chunk-4WOV4ITL.js";
86
77
  import {
87
- frontierWallet
88
- } from "./chunk-SPLW3CCH.js";
78
+ mewWallet
79
+ } from "./chunk-PWYTDYBE.js";
80
+ import {
81
+ ramperWallet
82
+ } from "./chunk-ZOL6ZMTJ.js";
89
83
  import {
90
84
  foxWallet
91
85
  } from "./chunk-Q4RLUJJD.js";
@@ -93,61 +87,67 @@ import {
93
87
  imTokenWallet
94
88
  } from "./chunk-5MVV7OVS.js";
95
89
  import {
96
- kresusWallet
97
- } from "./chunk-X6T3CICZ.js";
90
+ gateWallet
91
+ } from "./chunk-V45EXW7A.js";
98
92
  import {
99
- metaMaskWallet
100
- } from "./chunk-2XQJ2NQ4.js";
93
+ frameWallet
94
+ } from "./chunk-XXFJVY73.js";
101
95
  import {
102
- gateWallet
103
- } from "./chunk-HXYRONSJ.js";
96
+ frontierWallet
97
+ } from "./chunk-AM4SSLAP.js";
104
98
  import {
105
- coreWallet
106
- } from "./chunk-JLQ5HJYV.js";
99
+ ledgerWallet
100
+ } from "./chunk-Y6VY6E3L.js";
107
101
  import {
108
- bitskiWallet
109
- } from "./chunk-C67TQJ6W.js";
102
+ oktoWallet
103
+ } from "./chunk-WKHTUEF5.js";
110
104
  import {
111
- bitverseWallet
112
- } from "./chunk-NL4I7WOT.js";
105
+ coreWallet
106
+ } from "./chunk-JLQ5HJYV.js";
113
107
  import {
114
108
  clvWallet
115
109
  } from "./chunk-MIWCKFYE.js";
110
+ import {
111
+ bitgetWallet
112
+ } from "./chunk-ZNXQ4V6G.js";
113
+ import {
114
+ coin98Wallet
115
+ } from "./chunk-4FQLUQNA.js";
116
116
  import {
117
117
  desigWallet
118
118
  } from "./chunk-P4JLZ42R.js";
119
- import {
120
- bybitWallet
121
- } from "./chunk-ZUAHWUEL.js";
122
119
  import {
123
120
  dawnWallet
124
121
  } from "./chunk-4XQDKOGF.js";
125
122
  import {
126
- frameWallet
127
- } from "./chunk-XXFJVY73.js";
123
+ enkryptWallet
124
+ } from "./chunk-FLY7F4XA.js";
128
125
  import {
129
- bifrostWallet
130
- } from "./chunk-MU35GKP3.js";
126
+ coinbaseWallet
127
+ } from "./chunk-XBUTWYE4.js";
131
128
  import {
132
- bitgetWallet
133
- } from "./chunk-RYO26XSK.js";
129
+ argentWallet
130
+ } from "./chunk-NZ5G23JP.js";
134
131
  import {
135
- braveWallet
136
- } from "./chunk-ABYQAXUX.js";
132
+ bifrostWallet
133
+ } from "./chunk-6LTLPR2Q.js";
137
134
  import {
138
- argentWallet
139
- } from "./chunk-CVGDYGHA.js";
135
+ bitverseWallet
136
+ } from "./chunk-NL4I7WOT.js";
140
137
  import {
141
138
  bloomWallet
142
- } from "./chunk-OYW4TIA3.js";
139
+ } from "./chunk-NTGZF5BY.js";
140
+ import "./chunk-ZOLACFTK.js";
143
141
  import {
144
- coin98Wallet
145
- } from "./chunk-4FQLUQNA.js";
142
+ bybitWallet
143
+ } from "./chunk-ZUAHWUEL.js";
146
144
  import "./chunk-ZDU3JFGR.js";
147
145
  import {
148
- coinbaseWallet
149
- } from "./chunk-XBUTWYE4.js";
150
- import "./chunk-ZOLACFTK.js";
146
+ braveWallet
147
+ } from "./chunk-ABYQAXUX.js";
148
+ import {
149
+ bitskiWallet
150
+ } from "./chunk-C67TQJ6W.js";
151
151
  import "./chunk-QII6PY2D.js";
152
152
  export {
153
153
  argentWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  ledgerWallet
4
- } from "../chunk-AJKRYTH2.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-Y6VY6E3L.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  ledgerWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-2XQJ2NQ4.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-3WZRNEZH.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  metaMaskWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  oktoWallet
4
- } from "../chunk-OKZSWAPF.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-WKHTUEF5.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  oktoWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-2LY3WMXK.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-NGXIHASN.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  okxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  omniWallet
4
- } from "../chunk-OYKWP3N3.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-SVN7OEQR.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  omniWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-DNOEX5NF.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-O5NKWWEG.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  rainbowWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-PPFSHJTA.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-2UXZAUWT.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  tokenPocketWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-ZFXXHGAS.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-Z2DGDHHZ.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  trustWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-MCTPLICE.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-7CQPABJG.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  zerionWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -72,6 +72,8 @@
72
72
  "@types/ua-parser-js": "^0.7.39"
73
73
  },
74
74
  "dependencies": {
75
+ "@funkit/wagmi-tools": "^1.0.3",
76
+ "@funkit/core": "^1.0.2",
75
77
  "@vanilla-extract/css": "1.14.0",
76
78
  "@vanilla-extract/dynamic": "2.1.0",
77
79
  "@vanilla-extract/sprinkles": "1.6.1",
@@ -80,8 +82,6 @@
80
82
  "react-remove-scroll": "2.5.7",
81
83
  "ua-parser-js": "^1.0.37",
82
84
  "@tanstack/react-query": "^5.28.8",
83
- "@funkit/wagmi-tools": "^1.0.2",
84
- "@funkit/core": "^1.0.1",
85
85
  "@datadog/browser-logs": "^5.12.0",
86
86
  "@privy-io/js-sdk-core": "^0.14.0",
87
87
  "@moonpay/moonpay-react": "^1.6.1",
@@ -1,102 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-ZDU3JFGR.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
- };