@funkit/connect 12.15.3 → 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 +23 -0
- package/dist/clients/axiom.d.ts +11 -3
- package/dist/clients/axiom.js +3 -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 +900 -926
- 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 +38 -38
- 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,60 +8,60 @@ 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";
|
|
17
14
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
15
|
+
subWallet
|
|
16
|
+
} from "./chunk-XODA5ESL.js";
|
|
20
17
|
import {
|
|
21
18
|
talismanWallet
|
|
22
19
|
} from "./chunk-IAYYWCVB.js";
|
|
23
20
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
tokenPocketWallet
|
|
22
|
+
} from "./chunk-NXWG6FG2.js";
|
|
26
23
|
import {
|
|
27
24
|
trustWallet
|
|
28
25
|
} from "./chunk-SR5CZR3L.js";
|
|
26
|
+
import {
|
|
27
|
+
tokenaryWallet
|
|
28
|
+
} from "./chunk-TPM5PUJD.js";
|
|
29
29
|
import {
|
|
30
30
|
uniswapWallet
|
|
31
31
|
} from "./chunk-UNDWHCDH.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-DUX4XCDV.js";
|
|
35
|
+
import {
|
|
36
|
+
oneInchWallet
|
|
37
|
+
} from "./chunk-GFS2AVAH.js";
|
|
35
38
|
import {
|
|
36
39
|
rabbyWallet
|
|
37
40
|
} from "./chunk-RQ2GXOJL.js";
|
|
38
|
-
import {
|
|
39
|
-
phantomWallet
|
|
40
|
-
} from "./chunk-Q27YVDDH.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";
|
|
@@ -74,15 +74,15 @@ import {
|
|
|
74
74
|
import {
|
|
75
75
|
omniWallet
|
|
76
76
|
} from "./chunk-2TAUCVX7.js";
|
|
77
|
-
import {
|
|
78
|
-
oneInchWallet
|
|
79
|
-
} from "./chunk-GFS2AVAH.js";
|
|
80
77
|
import {
|
|
81
78
|
oneKeyWallet
|
|
82
79
|
} from "./chunk-KN32ITJ7.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
phantomWallet
|
|
82
|
+
} from "./chunk-Q27YVDDH.js";
|
|
83
|
+
import {
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-Z6LDN2AN.js";
|
|
86
86
|
import {
|
|
87
87
|
foxWallet
|
|
88
88
|
} from "./chunk-U52QO5HF.js";
|
|
@@ -107,18 +107,18 @@ import {
|
|
|
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
|
-
import {
|
|
117
|
-
coreWallet
|
|
118
|
-
} from "./chunk-TRZDAXCQ.js";
|
|
119
113
|
import {
|
|
120
114
|
coinbaseWallet
|
|
121
115
|
} from "./chunk-SM2A3OSG.js";
|
|
116
|
+
import {
|
|
117
|
+
clvWallet
|
|
118
|
+
} from "./chunk-4FHNLTR3.js";
|
|
119
|
+
import {
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-TRZDAXCQ.js";
|
|
122
122
|
import {
|
|
123
123
|
customWallet
|
|
124
124
|
} from "./chunk-VKM5M5UK.js";
|
|
@@ -126,26 +126,26 @@ import {
|
|
|
126
126
|
dawnWallet
|
|
127
127
|
} from "./chunk-LV6YV3DE.js";
|
|
128
128
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
129
|
+
desigWallet
|
|
130
|
+
} from "./chunk-DFHP75HV.js";
|
|
131
131
|
import {
|
|
132
132
|
bitgetWallet
|
|
133
133
|
} from "./chunk-HOCKAU5H.js";
|
|
134
|
+
import {
|
|
135
|
+
argentWallet
|
|
136
|
+
} from "./chunk-XSDTNMQY.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-NPITCCJE.js";
|
|
137
140
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
140
|
-
import {
|
|
141
|
-
argentWallet
|
|
142
|
-
} from "./chunk-XSDTNMQY.js";
|
|
141
|
+
bitverseWallet
|
|
142
|
+
} from "./chunk-5AEWIKRA.js";
|
|
143
143
|
import {
|
|
144
144
|
bifrostWallet
|
|
145
145
|
} from "./chunk-ALGPGI6V.js";
|
|
146
146
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
147
|
+
bloomWallet
|
|
148
|
+
} from "./chunk-PNHDOC77.js";
|
|
149
149
|
import "./chunk-AALSJCUR.js";
|
|
150
150
|
import {
|
|
151
151
|
braveWallet
|
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",
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
"ua-parser-js": "^1.0.37",
|
|
120
120
|
"use-debounce": "^10.0.5",
|
|
121
121
|
"uuid": "^11.1.1",
|
|
122
|
-
"@funkit/chains": "2.5.0",
|
|
123
122
|
"@funkit/api-base": "9.0.1",
|
|
124
|
-
"@funkit/
|
|
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;
|