@funkit/connect 9.2.1 → 9.3.1
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 +37 -0
- package/dist/__generated__/default_configs.d.ts +31 -2
- package/dist/__generated__/default_feature_gates.d.ts +1 -0
- package/dist/{chunk-3U6TWV25.js → chunk-JKGPN2BQ.js} +26 -7
- package/dist/{chunk-P6FYL3PM.js → chunk-VIJQ5A6W.js} +22 -1
- package/dist/{chunk-VLXKSNSJ.js → chunk-WXEL44DS.js} +22 -1
- package/dist/clients/fanatics.css +5437 -3993
- package/dist/clients/fanatics.d.ts +5 -0
- package/dist/clients/fanatics.js +15 -4
- package/dist/components/Box/Box.d.ts +45 -45
- package/dist/components/Dropdown/BaseDropdown.css.d.ts +2 -0
- package/dist/components/FunButton/FunButton.css.d.ts +1 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +2 -2
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +10 -0
- package/dist/css/sprinkles.css.d.ts +153 -59
- package/dist/domains/relay.d.ts +2 -2
- package/dist/hooks/useSwappedPreload.d.ts +2 -3
- package/dist/index.css +5509 -4026
- package/dist/index.js +2138 -2055
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +2 -15
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +15 -0
- package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -5
- package/dist/providers/FunkitConfigContext.d.ts +7 -0
- package/dist/providers/FunkitThemeProvider.d.ts +162 -21
- package/dist/providers/SwappedProvider.d.ts +8 -8
- 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 +4 -4
- package/dist/utils/swapped.d.ts +5 -3
- 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 +48 -48
- 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 +3 -2
- package/dist/hooks/useIframePool.d.ts +0 -38
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframePool.d.ts +0 -14
- package/dist/wallets/walletConnectors/{chunk-NEK7T3IC.js → chunk-4C7ER452.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UVMMPRDM.js → chunk-53VYSPXK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-I7K6LUZR.js → chunk-6UCI7GM6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3Y2GG3PM.js → chunk-6YO27XOM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-DWMUM4F6.js → chunk-7OARWILZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FDVJHNLL.js → chunk-CJJT7LMT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CT3QPTAU.js → chunk-EKJHJFRN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TIT5F32X.js → chunk-GH4M6FTK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UVYZSGIX.js → chunk-GSHSWVEG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CMLFDRCP.js → chunk-GVOQTORD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3YCR2ZB4.js → chunk-HETS3KKI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-C4RP2DNH.js → chunk-HOPH3TQ3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CBI3SGOC.js → chunk-IICWJWGZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZMRIQOR5.js → chunk-KO56HCTI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-COX3VEDR.js → chunk-LI6QY2B5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RLLTYOWT.js → chunk-PKMAPNN6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UPUDLUBT.js → chunk-TTHM3WUR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-N3UJMC3V.js → chunk-XBLHZICW.js} +3 -3
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -121,10 +121,10 @@ export declare function isVaultDepositCheckout(checkoutConfig: FunkitCheckoutCon
|
|
|
121
121
|
chainId: string;
|
|
122
122
|
tokenAddress: string;
|
|
123
123
|
}): boolean;
|
|
124
|
-
/** some additional
|
|
124
|
+
/** some additional finalized token will be performed after swap. We need to calculate the final destination token amount */
|
|
125
125
|
export declare function computeDisplayDestinationToken(checkoutConfig: FunkitCheckoutConfig | ServerCheckoutConfig | undefined, displayAssetAmount: number): {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
finalizedTokenAmount: number;
|
|
127
|
+
finalizedTokenSymbol: string;
|
|
128
|
+
finalizedTokenIcon: string;
|
|
129
129
|
};
|
|
130
130
|
export {};
|
package/dist/utils/swapped.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SavedFormOfPayment, type SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import type { ThemeVars } from '../css/sprinkles.css';
|
|
3
3
|
/**
|
|
4
4
|
* Ref: https://www.notion.so/Fun-Parameter-Styling-Guide-312966ea6e398011bbc6c14e976e281d#63dcdd77ea2d488084a980cda4c63d08
|
|
@@ -25,10 +25,12 @@ export interface SwappedTheme {
|
|
|
25
25
|
contentPadding?: string;
|
|
26
26
|
boxPaddingY?: string;
|
|
27
27
|
boxPaddingX?: string;
|
|
28
|
+
paymentMethodLightLogos?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export declare const isSavedFormOfPaymentType: (fop: SwappedFormOfPayment) => fop is SavedFormOfPayment;
|
|
30
31
|
export declare const getSavedFormOfPaymentDisplayName: (fop: SavedFormOfPayment) => string;
|
|
31
|
-
export declare const getSavedFormOfPaymentIcon: (fop: SavedFormOfPayment) => string;
|
|
32
|
+
export declare const getSavedFormOfPaymentIcon: (fop: SavedFormOfPayment) => string | undefined;
|
|
33
|
+
export declare const getSwappedIcon: (fop: SwappedFormOfPayment, isDarkMode: boolean) => string;
|
|
32
34
|
export declare function getSwappedOrigin(url: string): string | null;
|
|
33
35
|
export declare function isSwappedOrigin(origin: string): boolean;
|
|
34
36
|
export declare function resolveCssValue(value: string): string;
|
|
@@ -38,5 +40,5 @@ export declare function buildSwappedTheme(theme: ThemeVars & {
|
|
|
38
40
|
primary?: string;
|
|
39
41
|
secondary?: string;
|
|
40
42
|
};
|
|
41
|
-
}): SwappedTheme;
|
|
43
|
+
}, isDarkMode: boolean): SwappedTheme;
|
|
42
44
|
export declare function buildSwappedThemeQueryParams(activeTheme: ThemeVars): Record<string, string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-EKJHJFRN.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-HOPH3TQ3.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-6UCI7GM6.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-6YO27XOM.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-CJJT7LMT.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
} from "./chunk-HE2LMIPD.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TTHM3WUR.js";
|
|
8
8
|
import {
|
|
9
9
|
tahoWallet
|
|
10
10
|
} from "./chunk-4BMUFNMT.js";
|
|
11
|
+
import {
|
|
12
|
+
tokenPocketWallet
|
|
13
|
+
} from "./chunk-4C7ER452.js";
|
|
11
14
|
import {
|
|
12
15
|
talismanWallet
|
|
13
16
|
} from "./chunk-6MFOL6EB.js";
|
|
14
|
-
import {
|
|
15
|
-
tokenPocketWallet
|
|
16
|
-
} from "./chunk-NEK7T3IC.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenaryWallet
|
|
19
19
|
} from "./chunk-34LO6Q7A.js";
|
|
20
20
|
import {
|
|
21
21
|
trustWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KO56HCTI.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-NHLG5PVD.js";
|
|
@@ -34,91 +34,88 @@ import {
|
|
|
34
34
|
} from "./chunk-WFNPWKU3.js";
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GSHSWVEG.js";
|
|
38
38
|
import {
|
|
39
39
|
ramperWallet
|
|
40
40
|
} from "./chunk-R4S234FL.js";
|
|
41
|
-
import {
|
|
42
|
-
roninWallet
|
|
43
|
-
} from "./chunk-RLLTYOWT.js";
|
|
44
41
|
import {
|
|
45
42
|
safeWallet
|
|
46
43
|
} from "./chunk-YKVWTGU7.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
45
|
+
roninWallet
|
|
46
|
+
} from "./chunk-PKMAPNN6.js";
|
|
50
47
|
import {
|
|
51
48
|
safepalWallet
|
|
52
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IICWJWGZ.js";
|
|
50
|
+
import {
|
|
51
|
+
safeheronWallet
|
|
52
|
+
} from "./chunk-4R4AARTG.js";
|
|
53
53
|
import {
|
|
54
54
|
subWallet
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-XBLHZICW.js";
|
|
56
56
|
import {
|
|
57
57
|
metaMaskWallet
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-HETS3KKI.js";
|
|
59
59
|
import {
|
|
60
60
|
mewWallet
|
|
61
61
|
} from "./chunk-HKVDCVCG.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-BVX22N7L.js";
|
|
65
|
+
import {
|
|
66
|
+
okxWallet
|
|
67
|
+
} from "./chunk-LI6QY2B5.js";
|
|
68
|
+
import {
|
|
69
|
+
omniWallet
|
|
70
|
+
} from "./chunk-INNF7G5X.js";
|
|
65
71
|
import {
|
|
66
72
|
oneInchWallet
|
|
67
73
|
} from "./chunk-RVWLP4IM.js";
|
|
68
74
|
import {
|
|
69
75
|
oneKeyWallet
|
|
70
76
|
} from "./chunk-HE5J5T7X.js";
|
|
71
|
-
import {
|
|
72
|
-
okxWallet
|
|
73
|
-
} from "./chunk-COX3VEDR.js";
|
|
74
77
|
import {
|
|
75
78
|
phantomWallet
|
|
76
79
|
} from "./chunk-XMNVOYSJ.js";
|
|
77
|
-
import {
|
|
78
|
-
omniWallet
|
|
79
|
-
} from "./chunk-INNF7G5X.js";
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-53VYSPXK.js";
|
|
83
83
|
import {
|
|
84
84
|
frontierWallet
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CJJT7LMT.js";
|
|
86
86
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-WDTNOIMF.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-7OARWILZ.js";
|
|
92
92
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
93
|
+
imTokenWallet
|
|
94
|
+
} from "./chunk-IUVO4IN3.js";
|
|
95
95
|
import {
|
|
96
96
|
injectedWallet
|
|
97
97
|
} from "./chunk-W6MXINYY.js";
|
|
98
|
-
import {
|
|
99
|
-
kresusWallet
|
|
100
|
-
} from "./chunk-G4V5B6YC.js";
|
|
101
98
|
import {
|
|
102
99
|
ledgerWallet
|
|
103
100
|
} from "./chunk-WKCCLGHJ.js";
|
|
101
|
+
import {
|
|
102
|
+
kresusWallet
|
|
103
|
+
} from "./chunk-G4V5B6YC.js";
|
|
104
104
|
import {
|
|
105
105
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-GVOQTORD.js";
|
|
107
107
|
import {
|
|
108
108
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-6YO27XOM.js";
|
|
110
|
+
import {
|
|
111
|
+
bybitWallet
|
|
112
|
+
} from "./chunk-6UCI7GM6.js";
|
|
110
113
|
import {
|
|
111
114
|
coinbaseWallet
|
|
112
115
|
} from "./chunk-RZXMOPIV.js";
|
|
113
|
-
import {
|
|
114
|
-
braveWallet
|
|
115
|
-
} from "./chunk-ZRNBHLUU.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
119
|
-
import {
|
|
120
|
-
enkryptWallet
|
|
121
|
-
} from "./chunk-W6TXXLCO.js";
|
|
118
|
+
} from "./chunk-GH4M6FTK.js";
|
|
122
119
|
import {
|
|
123
120
|
desigWallet
|
|
124
121
|
} from "./chunk-JYVLYSH3.js";
|
|
@@ -126,28 +123,31 @@ import {
|
|
|
126
123
|
dawnWallet
|
|
127
124
|
} from "./chunk-TFVCCI2D.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-W6TXXLCO.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-VUOAIUZE.js";
|
|
134
131
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-EKJHJFRN.js";
|
|
137
134
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-HOPH3TQ3.js";
|
|
140
137
|
import {
|
|
141
138
|
bitverseWallet
|
|
142
139
|
} from "./chunk-GROWFRGP.js";
|
|
140
|
+
import {
|
|
141
|
+
bitskiWallet
|
|
142
|
+
} from "./chunk-A7FNGC4A.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-UB2SSFH7.js";
|
|
146
|
+
import "./chunk-MAPXJUOO.js";
|
|
146
147
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-ZRNBHLUU.js";
|
|
149
150
|
import "./chunk-BAVE62IL.js";
|
|
150
|
-
import "./chunk-MAPXJUOO.js";
|
|
151
151
|
import "./chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-HETS3KKI.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-GSHSWVEG.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-PKMAPNN6.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-IICWJWGZ.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-4C7ER452.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-KO56HCTI.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.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-BAVE62IL.js";
|
|
4
|
+
} from "../chunk-TTHM3WUR.js";
|
|
6
5
|
import "../chunk-MAPXJUOO.js";
|
|
6
|
+
import "../chunk-BAVE62IL.js";
|
|
7
7
|
import "../chunk-KV4HGYM3.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"@bluvo/sdk-ts": "2.1.3",
|
|
86
86
|
"@datadog/browser-logs": "5.22.0",
|
|
87
87
|
"@number-flow/react": "^0.5.5",
|
|
88
|
+
"@radix-ui/react-dropdown-menu": "^2.1.7",
|
|
88
89
|
"@radix-ui/react-tooltip": "^1.2.0",
|
|
89
90
|
"@solana/addresses": "^2.1.0",
|
|
90
91
|
"@statsig/react-bindings": "^3.25.4",
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
"ua-parser-js": "^1.0.37",
|
|
103
104
|
"use-debounce": "^10.0.5",
|
|
104
105
|
"uuid": "^9.0.1",
|
|
105
|
-
"@funkit/api-base": "3.0.
|
|
106
|
+
"@funkit/api-base": "3.0.2",
|
|
106
107
|
"@funkit/chains": "1.1.0",
|
|
107
108
|
"@funkit/fun-relay": "2.6.3",
|
|
108
109
|
"@funkit/utils": "1.2.4"
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
interface UseIframePoolOptions {
|
|
2
|
-
maxSize?: number;
|
|
3
|
-
}
|
|
4
|
-
interface IframePool {
|
|
5
|
-
/** URLs in the pool, ordered by priority (most important first) */
|
|
6
|
-
urls: string[];
|
|
7
|
-
/** The currently active/visible URL */
|
|
8
|
-
activeUrl: string | null;
|
|
9
|
-
/** Bulk-set preload URLs (priority order: most important first). Respects maxSize. */
|
|
10
|
-
setPreloadUrls: (urls: string[]) => void;
|
|
11
|
-
/** Activate a URL — marks it as active and adds it to the pool (evicting tail if full). */
|
|
12
|
-
activate: (url: string) => void;
|
|
13
|
-
/** Deactivate the current URL (hides overlay, but URL stays in pool). */
|
|
14
|
-
deactivate: () => void;
|
|
15
|
-
/** URLs that have finished loading (state — use for rendering). */
|
|
16
|
-
loadedUrls: string[];
|
|
17
|
-
/** Ref to loaded URLs (use in callbacks to avoid stale closures). */
|
|
18
|
-
loadedUrlsRef: React.RefObject<string[]>;
|
|
19
|
-
/** Mark an iframe as loaded. */
|
|
20
|
-
setLoaded: (url: string) => void;
|
|
21
|
-
/** Remove all URLs from the pool, clearing all associated state. */
|
|
22
|
-
clear: () => void;
|
|
23
|
-
/** Store/remove an iframe element ref. */
|
|
24
|
-
setRef: (url: string, el: HTMLIFrameElement | null) => void;
|
|
25
|
-
/** Get the iframe element for a URL (internal use). */
|
|
26
|
-
getRef: (url: string) => HTMLIFrameElement | null;
|
|
27
|
-
/** Ref to the active URL (for use in stable callbacks without re-registration). */
|
|
28
|
-
activeUrlRef: React.RefObject<string | null>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Bounded iframe pool with tail eviction.
|
|
32
|
-
*
|
|
33
|
-
* URLs are stored in priority order (most important first, matching fops order).
|
|
34
|
-
* When the pool exceeds `maxSize`, the last (least important) non-active URL
|
|
35
|
-
* is evicted.
|
|
36
|
-
*/
|
|
37
|
-
export declare function useIframePool({ maxSize, }?: UseIframePoolOptions): IframePool;
|
|
38
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Pooled iframes that live outside the HeightAnimationWrapper.
|
|
4
|
-
* Renders both preloaded and on-demand iframes from the provider's pool.
|
|
5
|
-
* Uses absolute positioning so it never affects layout measurements.
|
|
6
|
-
* When an iframe is active, it overlays the dialog content area.
|
|
7
|
-
*
|
|
8
|
-
* Wrapped in React.memo to prevent re-renders from parent state changes
|
|
9
|
-
* (e.g., modal step transitions, tab toggles). Only re-renders when the
|
|
10
|
-
* SwappedContext value changes (poolUrls, activeUrl, or loadedIframeUrls).
|
|
11
|
-
*/
|
|
12
|
-
declare function SwappedIframePool(): React.JSX.Element | null;
|
|
13
|
-
declare const _default: React.MemoExoticComponent<typeof SwappedIframePool>;
|
|
14
|
-
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-MAPXJUOO.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-BAVE62IL.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-MAPXJUOO.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-MAPXJUOO.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-BAVE62IL.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-MAPXJUOO.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-MAPXJUOO.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-BAVE62IL.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-MAPXJUOO.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-MAPXJUOO.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-BAVE62IL.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-MAPXJUOO.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-MAPXJUOO.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-BAVE62IL.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-MAPXJUOO.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-MAPXJUOO.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-BAVE62IL.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-MAPXJUOO.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-MAPXJUOO.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
8
|
} from "./chunk-BAVE62IL.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-MAPXJUOO.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|