@funkit/connect 11.4.1 → 11.5.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 +28 -0
- package/dist/clients/{chunk-5MY7WMEJ.js → chunk-3U55HYGJ.js} +2 -2
- package/dist/clients/{chunk-BPDLF2R6.js → chunk-DSZHYQPX.js} +1 -1
- package/dist/clients/chunk-WCQ6HJ27.js +13 -0
- package/dist/clients/{chunk-BB5FHA47.js → chunk-ZEDRWRYA.js} +10 -9
- package/dist/clients/fanatics.js +4 -4
- package/dist/clients/internal/nado/withdrawalConfig.d.ts +4 -9
- package/dist/clients/internal/nado/withdrawalConfig.js +3 -6
- package/dist/clients/internal/nado/withdrawalForm.css +38 -38
- package/dist/clients/internal/nado/withdrawalForm.js +6 -31
- package/dist/clients/internal/nado/withdrawalStatus.d.ts +1 -15
- package/dist/clients/internal/nado/withdrawalStatus.js +8 -54
- package/dist/clients/lighter.css +216 -216
- package/dist/clients/lighter.js +1 -0
- package/dist/clients/nado.d.ts +1 -1
- package/dist/clients/nado.js +8 -6
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +216 -216
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +3 -3
- package/dist/clients/polymarket/index.css +216 -216
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/consts/funkit.d.ts +2 -0
- package/dist/hooks/track/analytics/events.d.ts +21 -0
- package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +24 -1
- package/dist/hooks/useSwappedTheme.d.ts +3 -0
- package/dist/index.css +49 -49
- package/dist/index.js +12321 -12173
- package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +3 -1
- package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +3 -1
- package/dist/providers/FunkitProvider.d.ts +1 -0
- package/dist/shadow/adoptStyles.d.ts +5 -0
- package/dist/shadow-css.d.ts +1 -0
- package/dist/shadow-css.js +2 -0
- package/dist/utils/swapped.d.ts +8 -6
- 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 +41 -41
- 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 +10 -5
- package/shadow-css/package.json +3 -0
- package/dist/clients/chunk-TYG42JRZ.js +0 -40
- package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
package/dist/utils/swapped.d.ts
CHANGED
|
@@ -2,14 +2,16 @@ import type { SwappedTheme } from '@funkit/connect-core';
|
|
|
2
2
|
import type { ThemeVars } from '../css/sprinkles.css';
|
|
3
3
|
export { getFormOfPaymentDisplayName, getSavedFormOfPaymentDisplayName, getSavedFormOfPaymentIcon, getSwappedIcon, getSwappedOrigin, isSavedFormOfPaymentType, isSwappedOrigin, SWAPPED_CARD_BRANDS, } from '@funkit/connect-core';
|
|
4
4
|
export type { SwappedTheme };
|
|
5
|
-
export declare function resolveCssValue(value: string): string;
|
|
6
|
-
export declare function resolveObjectCssVars<T extends object>(obj: T): T;
|
|
5
|
+
export declare function resolveCssValue(value: string, scope: Element | null): string;
|
|
6
|
+
export declare function resolveObjectCssVars<T extends object>(obj: T, scope: Element | null): T;
|
|
7
7
|
/**
|
|
8
8
|
* Builds the SwappedTheme payload from a ThemeVars object. Pure — it does not
|
|
9
|
-
* touch the DOM, so it is safe to share across platforms.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* touch the DOM, so it is safe to share across platforms.
|
|
10
|
+
*
|
|
11
|
+
* Pass an already-resolved theme: `topbarPaddingX` is composed as
|
|
12
|
+
* `calc(<token> + 6px)`, and {@link resolveCssValue} only matches values that
|
|
13
|
+
* are entirely a `var(...)` ref, so anything wrapped in `calc()` here can no
|
|
14
|
+
* longer be resolved afterwards. Web callers use {@link resolveObjectCssVars}.
|
|
13
15
|
*/
|
|
14
16
|
export declare function buildSwappedTheme(theme: ThemeVars & {
|
|
15
17
|
customFontFamily?: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-4T6ZSRJF.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-CPI4TD43.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bybitWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-F5XEEVG6.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
bybitWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
coin98Wallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-6BW3HLBG.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
coin98Wallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-YEZM4CK4.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-52QXXLDS.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RVOY537T.js";
|
|
8
8
|
import {
|
|
9
9
|
tahoWallet
|
|
10
10
|
} from "./chunk-7ZYCBDQ4.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
} from "./chunk-4DCO3TGL.js";
|
|
14
14
|
import {
|
|
15
15
|
tokenPocketWallet
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HTHAK6XB.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenaryWallet
|
|
19
19
|
} from "./chunk-VH3THHJY.js";
|
|
20
20
|
import {
|
|
21
21
|
trustWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZNX4EMPB.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-Z3PPW6NC.js";
|
|
@@ -34,13 +34,13 @@ import {
|
|
|
34
34
|
} from "./chunk-RB66PKPA.js";
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-2VP2F6EK.js";
|
|
38
38
|
import {
|
|
39
39
|
ramperWallet
|
|
40
40
|
} from "./chunk-OQB55QXP.js";
|
|
41
41
|
import {
|
|
42
42
|
roninWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VAPGUPHO.js";
|
|
44
44
|
import {
|
|
45
45
|
safeWallet
|
|
46
46
|
} from "./chunk-RCY66YHF.js";
|
|
@@ -49,70 +49,73 @@ import {
|
|
|
49
49
|
} from "./chunk-76S7R2ND.js";
|
|
50
50
|
import {
|
|
51
51
|
safepalWallet
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-VTM6EECM.js";
|
|
53
53
|
import {
|
|
54
54
|
subWallet
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-X6CGV36L.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
metaMaskWallet
|
|
58
|
+
} from "./chunk-CCQV2ZET.js";
|
|
59
59
|
import {
|
|
60
60
|
mewWallet
|
|
61
61
|
} from "./chunk-MQM45ADF.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-YWOVAU6O.js";
|
|
65
|
+
import {
|
|
66
|
+
okxWallet
|
|
67
|
+
} from "./chunk-STVVP43G.js";
|
|
65
68
|
import {
|
|
66
69
|
omniWallet
|
|
67
70
|
} from "./chunk-2CX7LX4J.js";
|
|
68
|
-
import {
|
|
69
|
-
okxWallet
|
|
70
|
-
} from "./chunk-KI5Y2BBF.js";
|
|
71
71
|
import {
|
|
72
72
|
oneInchWallet
|
|
73
73
|
} from "./chunk-QG6ZHI7B.js";
|
|
74
|
+
import {
|
|
75
|
+
oneKeyWallet
|
|
76
|
+
} from "./chunk-WVT6BBJH.js";
|
|
74
77
|
import {
|
|
75
78
|
phantomWallet
|
|
76
79
|
} from "./chunk-QY53O7WG.js";
|
|
77
80
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
81
|
+
foxWallet
|
|
82
|
+
} from "./chunk-MIQTHJ6X.js";
|
|
80
83
|
import {
|
|
81
84
|
frameWallet
|
|
82
85
|
} from "./chunk-BU3ZAT5X.js";
|
|
83
86
|
import {
|
|
84
87
|
frontierWallet
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YEZM4CK4.js";
|
|
86
89
|
import {
|
|
87
90
|
gateWallet
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-HNRB7KJU.js";
|
|
89
92
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
imTokenWallet
|
|
94
|
+
} from "./chunk-WNAGGFMG.js";
|
|
92
95
|
import {
|
|
93
96
|
injectedWallet
|
|
94
97
|
} from "./chunk-T6LGKC3F.js";
|
|
95
|
-
import {
|
|
96
|
-
imTokenWallet
|
|
97
|
-
} from "./chunk-WNAGGFMG.js";
|
|
98
98
|
import {
|
|
99
99
|
kresusWallet
|
|
100
100
|
} from "./chunk-RICTB3FA.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-RPV27V2Y.js";
|
|
104
104
|
import {
|
|
105
105
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-UK7C2JXW.js";
|
|
107
|
+
import {
|
|
108
|
+
braveWallet
|
|
109
|
+
} from "./chunk-DS73TZ6O.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-6BW3HLBG.js";
|
|
110
113
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-2DLDAZRH.js";
|
|
113
116
|
import {
|
|
114
117
|
coreWallet
|
|
115
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-RB3HR4R2.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-G2PHTVL6.js";
|
|
@@ -122,32 +125,29 @@ import {
|
|
|
122
125
|
import {
|
|
123
126
|
enkryptWallet
|
|
124
127
|
} from "./chunk-HBQK5RD5.js";
|
|
125
|
-
import {
|
|
126
|
-
foxWallet
|
|
127
|
-
} from "./chunk-GUQM4QSL.js";
|
|
128
|
-
import {
|
|
129
|
-
bitgetWallet
|
|
130
|
-
} from "./chunk-TKB2OY6G.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-NTMBEOR2.js";
|
|
134
|
-
import {
|
|
135
|
-
bitskiWallet
|
|
136
|
-
} from "./chunk-7HRFUZFX.js";
|
|
137
131
|
import {
|
|
138
132
|
bifrostWallet
|
|
139
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-4T6ZSRJF.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-CPI4TD43.js";
|
|
140
137
|
import {
|
|
141
138
|
bitverseWallet
|
|
142
139
|
} from "./chunk-NSK6A7TI.js";
|
|
140
|
+
import {
|
|
141
|
+
bitskiWallet
|
|
142
|
+
} from "./chunk-7HRFUZFX.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-PJ7Y57EH.js";
|
|
146
|
-
import "./chunk-N4IJLYFY.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-F5XEEVG6.js";
|
|
150
149
|
import "./chunk-OLZ7626J.js";
|
|
150
|
+
import "./chunk-N4IJLYFY.js";
|
|
151
151
|
import "./chunk-IGKXZBTA.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-CCQV2ZET.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-2VP2F6EK.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
roninWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-VAPGUPHO.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
roninWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
safepalWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-VTM6EECM.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
safepalWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-HTHAK6XB.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-ZNX4EMPB.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-N4IJLYFY.js";
|
|
4
|
+
} from "../chunk-RVOY537T.js";
|
|
6
5
|
import "../chunk-OLZ7626J.js";
|
|
6
|
+
import "../chunk-N4IJLYFY.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"styles.css",
|
|
8
8
|
"wallets",
|
|
9
|
+
"shadow-css",
|
|
9
10
|
"CHANGELOG.md"
|
|
10
11
|
],
|
|
11
12
|
"type": "module",
|
|
12
13
|
"exports": {
|
|
13
14
|
".": "./dist/index.js",
|
|
14
15
|
"./styles.css": "./dist/index.css",
|
|
16
|
+
"./shadow-css": {
|
|
17
|
+
"types": "./dist/shadow-css.d.ts",
|
|
18
|
+
"default": "./dist/shadow-css.js"
|
|
19
|
+
},
|
|
15
20
|
"./wallets": "./dist/wallets/walletConnectors/index.js",
|
|
16
21
|
"./clients/internal/*": null,
|
|
17
22
|
"./clients/*": "./dist/clients/*.js",
|
|
@@ -106,11 +111,11 @@
|
|
|
106
111
|
"ua-parser-js": "^1.0.37",
|
|
107
112
|
"use-debounce": "^10.0.5",
|
|
108
113
|
"uuid": "^11.1.1",
|
|
109
|
-
"@funkit/api-base": "7.1.
|
|
114
|
+
"@funkit/api-base": "7.1.2",
|
|
110
115
|
"@funkit/chains": "2.2.0",
|
|
111
|
-
"@funkit/connect-core": "4.
|
|
112
|
-
"@funkit/
|
|
113
|
-
"@funkit/
|
|
116
|
+
"@funkit/connect-core": "4.1.0",
|
|
117
|
+
"@funkit/utils": "4.0.1",
|
|
118
|
+
"@funkit/fun-relay": "2.14.0"
|
|
114
119
|
},
|
|
115
120
|
"repository": {
|
|
116
121
|
"type": "git",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isCustomWithdrawalConfig
|
|
4
|
-
} from "./chunk-B7UU2ETA.js";
|
|
5
|
-
import {
|
|
6
|
-
logger
|
|
7
|
-
} from "./chunk-AHYOV7AV.js";
|
|
8
|
-
|
|
9
|
-
// src/clients/internal/nado/withdrawalConfig.ts
|
|
10
|
-
import {
|
|
11
|
-
buildNadoSubaccountId
|
|
12
|
-
} from "@funkit/connect-core/clients/nado";
|
|
13
|
-
var HEX_SHAPED_SUBACCOUNT_NAME = /^(?:[0-9a-f]{2})+$/i;
|
|
14
|
-
function isNadoWithdrawalConfig(config) {
|
|
15
|
-
return !!config && isCustomWithdrawalConfig(config) && config.customerConfig?.customerName === "nado";
|
|
16
|
-
}
|
|
17
|
-
function resolveNadoSubaccount(walletAddress, subaccountName) {
|
|
18
|
-
if (!walletAddress) {
|
|
19
|
-
return void 0;
|
|
20
|
-
}
|
|
21
|
-
if (subaccountName && HEX_SHAPED_SUBACCOUNT_NAME.test(subaccountName)) {
|
|
22
|
-
logger.warn("nado:withdrawal:hexShapedSubaccountName", {
|
|
23
|
-
name: subaccountName
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
try {
|
|
27
|
-
return buildNadoSubaccountId(walletAddress, subaccountName);
|
|
28
|
-
} catch (err) {
|
|
29
|
-
const error = err instanceof Error ? err : new Error(String(err));
|
|
30
|
-
logger.error("nado:withdrawal:invalidSubaccountName", error, {
|
|
31
|
-
name: subaccountName
|
|
32
|
-
});
|
|
33
|
-
return void 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
isNadoWithdrawalConfig,
|
|
39
|
-
resolveNadoSubaccount
|
|
40
|
-
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
11
|
var coin98Wallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.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-N4IJLYFY.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
5
|
} from "./chunk-OLZ7626J.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-N4IJLYFY.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/foxWallet/foxWallet.ts
|
|
11
11
|
var foxWallet = ({
|