@funkit/connect 12.15.2 → 12.16.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 +42 -0
- package/dist/clients/axiom.d.ts +11 -3
- package/dist/clients/axiom.js +3 -1
- package/dist/clients/internal/nado/withdrawalForm.js +1 -1
- package/dist/domains/convert/balances.d.ts +38 -0
- package/dist/domains/convert/recipient.d.ts +21 -0
- package/dist/domains/convert/sourceWallet.d.ts +29 -0
- package/dist/domains/convert/types.d.ts +149 -0
- package/dist/hooks/statsig/index.d.ts +1 -1
- package/dist/hooks/track/analytics/mappers.d.ts +0 -6
- package/dist/hooks/useSwappedBuyingCrypto.d.ts +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +938 -970
- package/dist/providers/FunkitCheckoutContext/types.d.ts +7 -0
- package/dist/providers/FunkitStatsigWhnProvider.d.ts +0 -11
- package/dist/providers/SwappedProvider.d.ts +4 -2
- package/dist/wallets/walletConnectors/index.js +39 -39
- package/package.json +4 -4
- package/dist/hooks/statsig/useExperimentV2.d.ts +0 -8
- package/dist/utils/statsig/client.d.ts +0 -4
|
@@ -198,6 +198,13 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
198
198
|
modalTitle?: string | ((asset: ModalTitleContext) => string);
|
|
199
199
|
/** Additional information to show in the title of the checkout modal. Blank by default **/
|
|
200
200
|
modalTitleMeta?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Whether the fiat on-ramp shows the destination token (ticker + icon) under
|
|
203
|
+
* the amount, e.g. "100 USD of DOGE". Defaults to `true`. The SDK picks the
|
|
204
|
+
* token from the checkout target; set `false` to hide the row, e.g. for a
|
|
205
|
+
* stablecoin deposit where it adds nothing.
|
|
206
|
+
*/
|
|
207
|
+
showFiatDestinationToken?: boolean;
|
|
201
208
|
/**
|
|
202
209
|
* Integrator-provided, display-only yield metadata for the destination
|
|
203
210
|
* (e.g. an Aave/Felix/Benqi supply). The SDK never computes these — the
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { type StatsigClient } from '@statsig/react-bindings';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import type { ReactNode } from 'react';
|
|
4
|
-
type FunWhnStatsigContextValue = {
|
|
5
|
-
client: StatsigClient | null;
|
|
6
|
-
/** Client is ready and has correct userId and apiKey vs current connected user */
|
|
7
|
-
isFullyReady: boolean;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
/** Forces re-rendering when updated configs are available so components can pick them up */
|
|
10
|
-
renderVersion: number;
|
|
11
|
-
};
|
|
12
|
-
export declare function useFunWhnStatsigContext(): FunWhnStatsigContextValue;
|
|
13
3
|
export declare function FunkitStatsigWhnProvider({ children, isDevelopment, }: {
|
|
14
4
|
children: ReactNode;
|
|
15
5
|
isDevelopment?: boolean;
|
|
16
6
|
}): React.JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormOfPaymentType } from '@funkit/api-base';
|
|
2
|
-
import { type SwappedTransport } from '@funkit/connect-core';
|
|
2
|
+
import { type SwappedBuyingCrypto, type SwappedTransport } from '@funkit/connect-core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { type SwappedTheme } from '../utils/swapped';
|
|
5
5
|
/** Deposit and withdrawal each own an independent Swapped iframe slot. */
|
|
@@ -16,8 +16,10 @@ interface SwappedSlot {
|
|
|
16
16
|
focusAmountInput: () => void;
|
|
17
17
|
swappedTransport: SwappedTransport;
|
|
18
18
|
}
|
|
19
|
-
export declare function SwappedProvider({ children }: {
|
|
19
|
+
export declare function SwappedProvider({ children, buyingCrypto, }: {
|
|
20
20
|
children: React.ReactNode;
|
|
21
|
+
/** Destination token the deposit embed shows under the amount. */
|
|
22
|
+
buyingCrypto?: SwappedBuyingCrypto;
|
|
21
23
|
}): React.JSX.Element;
|
|
22
24
|
export declare function useSwappedContext(mode: SwappedMode): SwappedSlot;
|
|
23
25
|
export declare function useSwappedTheme(): SwappedTheme;
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-34B7OJNT.js";
|
|
11
|
-
import {
|
|
12
|
-
subWallet
|
|
13
|
-
} from "./chunk-XODA5ESL.js";
|
|
14
11
|
import {
|
|
15
12
|
tahoWallet
|
|
16
13
|
} from "./chunk-U74RFZOL.js";
|
|
14
|
+
import {
|
|
15
|
+
subWallet
|
|
16
|
+
} from "./chunk-XODA5ESL.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-IAYYWCVB.js";
|
|
@@ -33,35 +33,35 @@ import {
|
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-DUX4XCDV.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
oneInchWallet
|
|
37
|
+
} from "./chunk-GFS2AVAH.js";
|
|
38
38
|
import {
|
|
39
39
|
rabbyWallet
|
|
40
40
|
} from "./chunk-RQ2GXOJL.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
43
|
} from "./chunk-ZSSSLFQF.js";
|
|
44
|
-
import {
|
|
45
|
-
ramperWallet
|
|
46
|
-
} from "./chunk-GPXIBTWN.js";
|
|
47
44
|
import {
|
|
48
45
|
roninWallet
|
|
49
46
|
} from "./chunk-IA5432IR.js";
|
|
50
47
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
48
|
+
ramperWallet
|
|
49
|
+
} from "./chunk-GPXIBTWN.js";
|
|
53
50
|
import {
|
|
54
51
|
safeWallet
|
|
55
52
|
} from "./chunk-IR3PJMVM.js";
|
|
53
|
+
import {
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-UN3ONVNC.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-BBB2J3US.js";
|
|
59
|
-
import {
|
|
60
|
-
ledgerWallet
|
|
61
|
-
} from "./chunk-BL4OC2EJ.js";
|
|
62
59
|
import {
|
|
63
60
|
metaMaskWallet
|
|
64
61
|
} from "./chunk-RXRYHMRI.js";
|
|
62
|
+
import {
|
|
63
|
+
ledgerWallet
|
|
64
|
+
} from "./chunk-BL4OC2EJ.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-DSPQXAB2.js";
|
|
@@ -72,14 +72,17 @@ import {
|
|
|
72
72
|
okxWallet
|
|
73
73
|
} from "./chunk-CU5J53XR.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
omniWallet
|
|
76
|
+
} from "./chunk-2TAUCVX7.js";
|
|
77
77
|
import {
|
|
78
78
|
oneKeyWallet
|
|
79
79
|
} from "./chunk-KN32ITJ7.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-Q27YVDDH.js";
|
|
83
|
+
import {
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-Z6LDN2AN.js";
|
|
83
86
|
import {
|
|
84
87
|
foxWallet
|
|
85
88
|
} from "./chunk-U52QO5HF.js";
|
|
@@ -87,35 +90,32 @@ import {
|
|
|
87
90
|
frameWallet
|
|
88
91
|
} from "./chunk-B572YIAQ.js";
|
|
89
92
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
frontierWallet
|
|
94
|
+
} from "./chunk-IWOMSW64.js";
|
|
92
95
|
import {
|
|
93
96
|
gateWallet
|
|
94
97
|
} from "./chunk-YRMBR6NA.js";
|
|
95
|
-
import {
|
|
96
|
-
frontierWallet
|
|
97
|
-
} from "./chunk-IWOMSW64.js";
|
|
98
98
|
import {
|
|
99
99
|
imTokenWallet
|
|
100
100
|
} from "./chunk-YY2JA23M.js";
|
|
101
|
-
import {
|
|
102
|
-
kresusWallet
|
|
103
|
-
} from "./chunk-V77ATGZT.js";
|
|
104
101
|
import {
|
|
105
102
|
injectedWallet
|
|
106
103
|
} from "./chunk-M75V7OL3.js";
|
|
104
|
+
import {
|
|
105
|
+
kresusWallet
|
|
106
|
+
} from "./chunk-V77ATGZT.js";
|
|
107
107
|
import {
|
|
108
108
|
bybitWallet
|
|
109
109
|
} from "./chunk-BBDNB5TQ.js";
|
|
110
|
-
import {
|
|
111
|
-
clvWallet
|
|
112
|
-
} from "./chunk-4FHNLTR3.js";
|
|
113
110
|
import {
|
|
114
111
|
coin98Wallet
|
|
115
112
|
} from "./chunk-RFCZYLNR.js";
|
|
116
113
|
import {
|
|
117
114
|
coinbaseWallet
|
|
118
115
|
} from "./chunk-SM2A3OSG.js";
|
|
116
|
+
import {
|
|
117
|
+
clvWallet
|
|
118
|
+
} from "./chunk-4FHNLTR3.js";
|
|
119
119
|
import {
|
|
120
120
|
coreWallet
|
|
121
121
|
} from "./chunk-TRZDAXCQ.js";
|
|
@@ -129,27 +129,27 @@ import {
|
|
|
129
129
|
desigWallet
|
|
130
130
|
} from "./chunk-DFHP75HV.js";
|
|
131
131
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
134
|
-
import {
|
|
135
|
-
bitskiWallet
|
|
136
|
-
} from "./chunk-NPITCCJE.js";
|
|
132
|
+
bitgetWallet
|
|
133
|
+
} from "./chunk-HOCKAU5H.js";
|
|
137
134
|
import {
|
|
138
135
|
argentWallet
|
|
139
136
|
} from "./chunk-XSDTNMQY.js";
|
|
140
137
|
import {
|
|
141
|
-
|
|
142
|
-
} from "./chunk-
|
|
138
|
+
bitskiWallet
|
|
139
|
+
} from "./chunk-NPITCCJE.js";
|
|
143
140
|
import {
|
|
144
141
|
bitverseWallet
|
|
145
142
|
} from "./chunk-5AEWIKRA.js";
|
|
146
143
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
144
|
+
bifrostWallet
|
|
145
|
+
} from "./chunk-ALGPGI6V.js";
|
|
149
146
|
import {
|
|
150
|
-
|
|
151
|
-
} from "./chunk-
|
|
147
|
+
bloomWallet
|
|
148
|
+
} from "./chunk-PNHDOC77.js";
|
|
152
149
|
import "./chunk-AALSJCUR.js";
|
|
150
|
+
import {
|
|
151
|
+
braveWallet
|
|
152
|
+
} from "./chunk-U2XXV45G.js";
|
|
153
153
|
import "./chunk-EYWGX5LT.js";
|
|
154
154
|
import "./chunk-B454LLKJ.js";
|
|
155
155
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.16.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
"use-debounce": "^10.0.5",
|
|
121
121
|
"uuid": "^11.1.1",
|
|
122
122
|
"@funkit/api-base": "9.0.1",
|
|
123
|
-
"@funkit/
|
|
124
|
-
"@funkit/connect-core": "9.
|
|
123
|
+
"@funkit/fun-relay": "3.1.3",
|
|
124
|
+
"@funkit/connect-core": "9.4.0",
|
|
125
125
|
"@funkit/utils": "5.0.2",
|
|
126
|
-
"@funkit/
|
|
126
|
+
"@funkit/chains": "2.5.0"
|
|
127
127
|
},
|
|
128
128
|
"repository": {
|
|
129
129
|
"type": "git",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reads an experiment parameter from the secondary Fun WHN Statsig client.
|
|
3
|
-
*
|
|
4
|
-
* The secondary client is not mounted in a StatsigProvider, so this hook
|
|
5
|
-
* subscribes to `values_updated` directly. That keeps the returned value in
|
|
6
|
-
* sync after client initialization and user updates.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useExperimentV2<T>(experimentName: string, parameterName: string, fallback: T): T;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { PrecomputedEvaluationsInterface } from '@statsig/react-bindings';
|
|
2
|
-
export declare function getStatsigClientUserId(client: PrecomputedEvaluationsInterface): string | null;
|
|
3
|
-
export declare function isStatsigClientLoading(client: PrecomputedEvaluationsInterface): boolean;
|
|
4
|
-
export declare function isStatsigClientFullyReady(client: PrecomputedEvaluationsInterface, apiKey: string, userId: string | null): boolean;
|