@funkit/connect 6.15.12 → 7.0.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.
- package/CHANGELOG.md +52 -0
- package/dist/{chunk-L3BEU75V.js → chunk-DN7UTQK5.js} +10 -2
- package/dist/{chunk-KG5Q63KL.js → chunk-OVMNR35O.js} +11 -3
- package/dist/{chunk-WCUXJAGT.js → chunk-RJAD5CZH.js} +14 -2
- package/dist/components/Box/Box.d.ts +30 -30
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/hooks.d.ts +2 -0
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +2 -1
- package/dist/components/FunConnectOptions/FunConnectOptions.d.ts +4 -6
- package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -8
- package/dist/components/Icons/FunTechnologyLogo.d.ts +2 -0
- package/dist/components/Icons/StatusIcons.css.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +5 -0
- package/dist/consts/customers.d.ts +1 -0
- package/dist/consts/funkit.d.ts +1 -9
- package/dist/css/sprinkles.css.d.ts +76 -32
- package/dist/domains/asset.d.ts +2 -4
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +2 -1
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
- package/dist/hooks/useFunListeners.d.ts +0 -1
- package/dist/hooks/usePaymentMethodIcon.d.ts +0 -1
- package/dist/index.css +3291 -3088
- package/dist/index.js +28129 -29983
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -0
- package/dist/modals/ConnectModal/ConnectModal.d.ts +1 -3
- package/dist/providers/FunkitConfigContext.d.ts +33 -20
- package/dist/providers/FunkitThemeProvider.d.ts +69 -3
- package/dist/providers/GeneralWalletProvider.d.ts +0 -1
- package/dist/providers/ModalContext.d.ts +1 -1
- package/dist/providers/provideFunkitConnectChains.d.ts +2 -7
- package/dist/themes/baseTheme.d.ts +1 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +1 -2
- package/dist/utils/flags/config.d.ts +4 -35
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +45 -45
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +8 -10
- package/dist/components/FunConnectOptions/FunFarcasterConnectingStep.d.ts +0 -5
- package/dist/components/FunConnectOptions/FunWeb2ConnectingStep.d.ts +0 -6
- package/dist/components/FunSocials/FunSocials.d.ts +0 -10
- package/dist/farcaster-MF6WINBA.js +0 -7
- package/dist/funkitConnectWallet-U6JYSE3A.js +0 -7
- package/dist/providers/FunkitWeb2Provider.d.ts +0 -66
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.d.ts +0 -2
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +0 -31
- package/dist/wallets/walletConnectors/funkitConnectWallet-U6JYSE3A.js +0 -7
- package/dist/wallets/walletConnectors/{chunk-UYGJO62F.js → chunk-2HYNUNAS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3CICVJUN.js → chunk-2KUBG3S6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-J3LI3FYZ.js → chunk-2L43XSW3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LNEC5RNX.js → chunk-2STUC6QL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CNPKISHN.js → chunk-7QONTUXT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UIASLGLV.js → chunk-A5N6B5UW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CJGUM55H.js → chunk-FKJJQNKX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZSI5N4VV.js → chunk-JWFF4AAL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2GJQ4XZQ.js → chunk-M3NZ6R2E.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-EC6CHBSZ.js → chunk-NT2HYJKW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-QLVVUKYB.js → chunk-NWIQNBJU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KIDC67XJ.js → chunk-OBOVHCEI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-Q3H3TRBS.js → chunk-SULRQO27.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VWCLFMWJ.js → chunk-TCAGNB4B.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5W7VDOCL.js → chunk-TDAVGY5F.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AFXHGWBH.js → chunk-TDIEHTMB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JCHN6A47.js → chunk-VR4TBQ6S.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RKPCWHXL.js → chunk-VYBAYMP3.js} +3 -3
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-BOU4WKRZ.js";
|
|
5
2
|
import {
|
|
6
3
|
zealWallet
|
|
7
4
|
} from "./chunk-RNBEDQHF.js";
|
|
8
5
|
import {
|
|
9
6
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
subWallet
|
|
13
|
-
} from "./chunk-ZSI5N4VV.js";
|
|
7
|
+
} from "./chunk-SULRQO27.js";
|
|
14
8
|
import {
|
|
15
9
|
tahoWallet
|
|
16
10
|
} from "./chunk-ZZZRUXZE.js";
|
|
@@ -19,13 +13,13 @@ import {
|
|
|
19
13
|
} from "./chunk-DRO6WYMM.js";
|
|
20
14
|
import {
|
|
21
15
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2L43XSW3.js";
|
|
23
17
|
import {
|
|
24
18
|
tokenaryWallet
|
|
25
19
|
} from "./chunk-D6AOOO5F.js";
|
|
26
20
|
import {
|
|
27
21
|
trustWallet
|
|
28
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VYBAYMP3.js";
|
|
29
23
|
import {
|
|
30
24
|
uniswapWallet
|
|
31
25
|
} from "./chunk-LH7BMNFZ.js";
|
|
@@ -33,20 +27,20 @@ import {
|
|
|
33
27
|
walletConnectWallet
|
|
34
28
|
} from "./chunk-NP5QGWNL.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
rainbowWallet
|
|
40
|
-
} from "./chunk-3CICVJUN.js";
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
41
32
|
import {
|
|
42
33
|
rabbyWallet
|
|
43
34
|
} from "./chunk-BBOM42DL.js";
|
|
35
|
+
import {
|
|
36
|
+
rainbowWallet
|
|
37
|
+
} from "./chunk-2KUBG3S6.js";
|
|
44
38
|
import {
|
|
45
39
|
ramperWallet
|
|
46
40
|
} from "./chunk-BYXPFMI7.js";
|
|
47
41
|
import {
|
|
48
42
|
roninWallet
|
|
49
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-NWIQNBJU.js";
|
|
50
44
|
import {
|
|
51
45
|
safeWallet
|
|
52
46
|
} from "./chunk-BQQQL6UD.js";
|
|
@@ -55,25 +49,28 @@ import {
|
|
|
55
49
|
} from "./chunk-RZIO5TFF.js";
|
|
56
50
|
import {
|
|
57
51
|
safepalWallet
|
|
58
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-NT2HYJKW.js";
|
|
59
53
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
54
|
+
subWallet
|
|
55
|
+
} from "./chunk-JWFF4AAL.js";
|
|
62
56
|
import {
|
|
63
57
|
metaMaskWallet
|
|
64
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2HYNUNAS.js";
|
|
65
59
|
import {
|
|
66
60
|
mewWallet
|
|
67
61
|
} from "./chunk-OL5ZO7E4.js";
|
|
68
62
|
import {
|
|
69
63
|
oktoWallet
|
|
70
64
|
} from "./chunk-ADIXAKUL.js";
|
|
71
|
-
import {
|
|
72
|
-
okxWallet
|
|
73
|
-
} from "./chunk-AFXHGWBH.js";
|
|
74
65
|
import {
|
|
75
66
|
omniWallet
|
|
76
67
|
} from "./chunk-7CUY5G6R.js";
|
|
68
|
+
import {
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-TDIEHTMB.js";
|
|
71
|
+
import {
|
|
72
|
+
oneInchWallet
|
|
73
|
+
} from "./chunk-OESTDX6I.js";
|
|
77
74
|
import {
|
|
78
75
|
oneKeyWallet
|
|
79
76
|
} from "./chunk-SHBUZ7U7.js";
|
|
@@ -82,72 +79,75 @@ import {
|
|
|
82
79
|
} from "./chunk-362NXNTM.js";
|
|
83
80
|
import {
|
|
84
81
|
foxWallet
|
|
85
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-7QONTUXT.js";
|
|
86
83
|
import {
|
|
87
84
|
frameWallet
|
|
88
85
|
} from "./chunk-IFON7E6U.js";
|
|
89
86
|
import {
|
|
90
87
|
frontierWallet
|
|
91
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-TCAGNB4B.js";
|
|
92
89
|
import {
|
|
93
90
|
gateWallet
|
|
94
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-FKJJQNKX.js";
|
|
95
92
|
import {
|
|
96
93
|
imTokenWallet
|
|
97
94
|
} from "./chunk-COZ7MIQS.js";
|
|
95
|
+
import {
|
|
96
|
+
kresusWallet
|
|
97
|
+
} from "./chunk-MJXPRJZT.js";
|
|
98
98
|
import {
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-BRBKM4PW.js";
|
|
104
|
+
import {
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-2STUC6QL.js";
|
|
104
107
|
import {
|
|
105
108
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-M3NZ6R2E.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-OBOVHCEI.js";
|
|
110
113
|
import {
|
|
111
114
|
coinbaseWallet
|
|
112
115
|
} from "./chunk-H4IRCEZN.js";
|
|
113
|
-
import {
|
|
114
|
-
braveWallet
|
|
115
|
-
} from "./chunk-BPZ2XJO2.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
119
|
-
import {
|
|
120
|
-
desigWallet
|
|
121
|
-
} from "./chunk-OPAZMNA7.js";
|
|
118
|
+
} from "./chunk-VR4TBQ6S.js";
|
|
122
119
|
import {
|
|
123
120
|
dawnWallet
|
|
124
121
|
} from "./chunk-HWPKCIBE.js";
|
|
122
|
+
import {
|
|
123
|
+
desigWallet
|
|
124
|
+
} from "./chunk-OPAZMNA7.js";
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-OLOIXTYS.js";
|
|
128
128
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
129
|
+
argentWallet
|
|
130
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-A5N6B5UW.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-TDAVGY5F.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-HS3C7OQV.js";
|
|
137
140
|
import {
|
|
138
141
|
bitverseWallet
|
|
139
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
140
|
-
import {
|
|
141
|
-
argentWallet
|
|
142
|
-
} from "./chunk-WSQ2YJO2.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-S27IADFU.js";
|
|
146
|
+
import "./chunk-23WIEY36.js";
|
|
146
147
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-BPZ2XJO2.js";
|
|
149
150
|
import "./chunk-DNSG5Q7V.js";
|
|
150
|
-
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"i18next-cli": "1.24.14",
|
|
48
|
-
"@aws-sdk/client-cloudfront": "3.
|
|
48
|
+
"@aws-sdk/client-cloudfront": "3.943.0",
|
|
49
49
|
"@aws-sdk/client-s3": "3.840.0",
|
|
50
50
|
"@chromatic-com/storybook": "^4.1.1",
|
|
51
51
|
"@statsig/statsig-node-core": "^0.11.1",
|
|
52
52
|
"@storybook/addon-docs": "^9.1.3",
|
|
53
|
-
"@storybook/addon-links": "^
|
|
53
|
+
"@storybook/addon-links": "^10.1.3",
|
|
54
54
|
"@storybook/react-vite": "^9.1.3",
|
|
55
55
|
"@testing-library/jest-dom": "^6.2.0",
|
|
56
56
|
"@testing-library/react": "^16.0.1",
|
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
"@bluvo/sdk-ts": "2.1.3",
|
|
84
84
|
"@datadog/browser-logs": "5.22.0",
|
|
85
85
|
"@number-flow/react": "^0.5.5",
|
|
86
|
-
"@privy-io/js-sdk-core": "^0.21.0",
|
|
87
86
|
"@solana/addresses": "^2.1.0",
|
|
88
87
|
"@statsig/react-bindings": "^3.25.4",
|
|
89
88
|
"@types/uuid": "^9.0.8",
|
|
@@ -101,12 +100,11 @@
|
|
|
101
100
|
"ua-parser-js": "^1.0.37",
|
|
102
101
|
"use-debounce": "^10.0.5",
|
|
103
102
|
"uuid": "^9.0.1",
|
|
104
|
-
"@funkit/api-base": "1.12.
|
|
105
|
-
"@funkit/chains": "0.
|
|
106
|
-
"@funkit/core": "2.3.
|
|
107
|
-
"@funkit/fun-relay": "2.1.
|
|
108
|
-
"@funkit/utils": "1.1.
|
|
109
|
-
"@funkit/wagmi-tools": "3.0.88"
|
|
103
|
+
"@funkit/api-base": "1.12.19",
|
|
104
|
+
"@funkit/chains": "0.5.0",
|
|
105
|
+
"@funkit/core": "2.3.66",
|
|
106
|
+
"@funkit/fun-relay": "2.1.14",
|
|
107
|
+
"@funkit/utils": "1.1.20"
|
|
110
108
|
},
|
|
111
109
|
"repository": {
|
|
112
110
|
"type": "git",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SocialLoginOption } from '../../consts/funkit';
|
|
3
|
-
import { type BoxProps } from '../Box/Box';
|
|
4
|
-
interface Props {
|
|
5
|
-
options: SocialLoginOption[];
|
|
6
|
-
onSelect: (provider: SocialLoginOption['provider']) => void;
|
|
7
|
-
flexDirection?: BoxProps['flexDirection'];
|
|
8
|
-
}
|
|
9
|
-
export declare const FunSocials: ({ options, onSelect, flexDirection }: Props) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/FunConnectOptions/farcaster.svg
|
|
4
|
-
var farcaster_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none" viewBox="0 0 1000 1000"><path fill="%23855DCD" d="M257.778 155.556h484.444v688.889h-71.111V528.889h-.697c-7.86-87.212-81.156-155.556-170.414-155.556s-162.554 68.344-170.414 155.556h-.697v315.556h-71.111z"/><path fill="%23855DCD" d="m128.889 253.333 28.889 97.778h24.444v395.556c-12.273 0-22.222 9.949-22.222 22.222v26.667h-4.444c-12.273 0-22.223 9.949-22.223 22.222v26.667h248.889v-26.667c0-12.273-9.949-22.222-22.222-22.222h-4.444v-26.667c0-12.273-9.95-22.222-22.223-22.222h-26.666V253.333zm546.667 493.334c-12.273 0-22.223 9.949-22.223 22.222v26.667h-4.444c-12.273 0-22.222 9.949-22.222 22.222v26.667h248.889v-26.667c0-12.273-9.95-22.222-22.223-22.222h-4.444v-26.667c0-12.273-9.949-22.222-22.222-22.222V351.111h24.444L880 253.333H702.222v493.334z"/></svg>';
|
|
5
|
-
export {
|
|
6
|
-
farcaster_default as default
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.svg
|
|
4
|
-
var funkitConnectWallet_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 -4 24 28"><path fill="%23fff" fill-rule="evenodd" d="M14.027 1.1c-.91-1.467-3.143-1.467-4.054 0L.33 16.627C-.596 18.117.535 20 2.357 20h19.286c1.822 0 2.953-1.882 2.027-3.373zm-2.982 15.613c.469.63 1.452.63 1.921 0l3.581-4.812c.551-.74-.006-1.764-.96-1.764H8.424c-.955 0-1.512 1.023-.961 1.764z" clip-rule="evenodd"/></svg>';
|
|
5
|
-
export {
|
|
6
|
-
funkitConnectWallet_default as default
|
|
7
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import PrivyJS, { type OAuthProviderType } from '@privy-io/js-sdk-core';
|
|
2
|
-
import React, { type ReactNode } from 'react';
|
|
3
|
-
import { type FunkitUserInfoBase, PrivyLoginMethod } from '../consts/funkit';
|
|
4
|
-
type FarcasterAuthParams = Parameters<PrivyJS['auth']['farcaster']['authenticate']>[0];
|
|
5
|
-
type FarcasterCompletedStatusResponse = Extract<Awaited<ReturnType<PrivyJS['auth']['farcaster']['getFarcasterStatus']>>, {
|
|
6
|
-
state: 'completed';
|
|
7
|
-
}>;
|
|
8
|
-
type FarcasterConnectionStatus = {
|
|
9
|
-
isCompleted: true;
|
|
10
|
-
fcMeta: FarcasterCompletedStatusResponse;
|
|
11
|
-
} | {
|
|
12
|
-
isCompleted: false;
|
|
13
|
-
fcMeta: unknown;
|
|
14
|
-
};
|
|
15
|
-
export declare const ERROR_MESSAGES: {
|
|
16
|
-
readonly MISSING_LOGIN_CODES: "Missing login codes";
|
|
17
|
-
readonly INVALID_LOGIN_METHOD: "Invalid login method";
|
|
18
|
-
readonly INVALID_EMAIL: "Invalid email address";
|
|
19
|
-
readonly FAILED_SEND_EMAIL: "Failed to send email";
|
|
20
|
-
readonly PRIVY_NOT_INITIALIZED: "Privy not initialized";
|
|
21
|
-
readonly PRIVY_PROVIDER_NOT_INITIALIZED: "Privy wallet provider not initialized";
|
|
22
|
-
readonly PRIVY_USER_NOT_INITIALIZED: "Privy user not initialized";
|
|
23
|
-
readonly FARCASTER_NOT_INITIALIZED: "Unable to initialize Farcaster login";
|
|
24
|
-
};
|
|
25
|
-
type PrivyLoginParams = {
|
|
26
|
-
firstLoginCode?: string;
|
|
27
|
-
secondLoginCode?: string;
|
|
28
|
-
alternateCodeMeta?: FarcasterAuthParams;
|
|
29
|
-
inputLoginMethod: PrivyLoginMethod;
|
|
30
|
-
};
|
|
31
|
-
interface FunkitWeb2LoginParams extends Omit<PrivyLoginParams, 'inputLoginMethod'> {
|
|
32
|
-
chainId: number;
|
|
33
|
-
inputLoginMethod?: PrivyLoginMethod;
|
|
34
|
-
}
|
|
35
|
-
interface FunkitWeb2ContextType {
|
|
36
|
-
isSendingOtpEmail: boolean;
|
|
37
|
-
isGeneratingFcUri: boolean;
|
|
38
|
-
handleSendOtpEmail: (emailAddress: string) => Promise<{
|
|
39
|
-
success: boolean;
|
|
40
|
-
error: string;
|
|
41
|
-
}>;
|
|
42
|
-
handleOauthRedirect: (provider: OAuthProviderType) => Promise<void>;
|
|
43
|
-
handleFunkitWeb2Login: ({ chainId, firstLoginCode, secondLoginCode, alternateCodeMeta, inputLoginMethod, }: FunkitWeb2LoginParams) => Promise<boolean>;
|
|
44
|
-
isLoggingIn: boolean;
|
|
45
|
-
loginErrorMessage: string;
|
|
46
|
-
clearLoginError: () => void;
|
|
47
|
-
handleFunkitWeb2Logout: () => Promise<void>;
|
|
48
|
-
handleGenerateFcUri: () => Promise<{
|
|
49
|
-
success: boolean;
|
|
50
|
-
error: string;
|
|
51
|
-
channelToken: string;
|
|
52
|
-
connectUri: string;
|
|
53
|
-
}>;
|
|
54
|
-
getFcConnectionStatus: (channelToken: string) => Promise<FarcasterConnectionStatus>;
|
|
55
|
-
web2UserInfo: FunkitUserInfoBase;
|
|
56
|
-
}
|
|
57
|
-
export declare const AUTH_PROVIDER = "privy.io";
|
|
58
|
-
interface FunkitWeb2ProviderProps {
|
|
59
|
-
children: ReactNode;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Handles web2 signins via Privy
|
|
63
|
-
*/
|
|
64
|
-
declare const FunkitWeb2Provider: React.FC<FunkitWeb2ProviderProps>;
|
|
65
|
-
declare const useFunkitWeb2Login: () => FunkitWeb2ContextType;
|
|
66
|
-
export { FunkitWeb2Provider, useFunkitWeb2Login };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.ts
|
|
4
|
-
import { funkitWagmiConnectorWallet } from "@funkit/wagmi-tools";
|
|
5
|
-
import { createConnector } from "wagmi";
|
|
6
|
-
|
|
7
|
-
// src/consts/funkit.ts
|
|
8
|
-
import { FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS } from "@funkit/chains";
|
|
9
|
-
var FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
|
|
10
|
-
|
|
11
|
-
// src/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.ts
|
|
12
|
-
var funkitConnectWallet = () => {
|
|
13
|
-
return {
|
|
14
|
-
id: FUNKIT_CONNECT_WALLET_ID,
|
|
15
|
-
name: "FunkitConnect Wallet",
|
|
16
|
-
shortName: "FunkitConnect Wallet",
|
|
17
|
-
iconUrl: async () => (await import("../funkitConnectWallet-U6JYSE3A.js")).default,
|
|
18
|
-
iconAccent: "#000000",
|
|
19
|
-
iconBackground: "#000000",
|
|
20
|
-
downloadUrls: void 0,
|
|
21
|
-
createConnector: (walletDetails) => {
|
|
22
|
-
return createConnector((config) => ({
|
|
23
|
-
...funkitWagmiConnectorWallet()(config),
|
|
24
|
-
...walletDetails
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
funkitConnectWallet
|
|
31
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.svg
|
|
4
|
-
var funkitConnectWallet_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 -4 24 28"><path fill="%23fff" fill-rule="evenodd" d="M14.027 1.1c-.91-1.467-3.143-1.467-4.054 0L.33 16.627C-.596 18.117.535 20 2.357 20h19.286c1.822 0 2.953-1.882 2.027-3.373zm-2.982 15.613c.469.63 1.452.63 1.921 0l3.581-4.812c.551-.74-.006-1.764-.96-1.764H8.424c-.955 0-1.512 1.023-.961 1.764z" clip-rule="evenodd"/></svg>';
|
|
5
|
-
export {
|
|
6
|
-
funkitConnectWallet_default as default
|
|
7
|
-
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
11
|
import { isAndroid, isIOS } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
11
11
|
import { isAndroid, isIOS } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
11
|
import { isMobile } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
|
|
11
11
|
var bybitWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/foxWallet/foxWallet.ts
|
|
11
11
|
var foxWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
11
|
var subWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/clvWallet/clvWallet.ts
|
|
11
11
|
var clvWallet = ({
|