@funkit/connect 9.2.0 → 9.2.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 +13 -0
- package/dist/{chunk-SC53AFEE.js → chunk-3U6TWV25.js} +14 -4
- package/dist/{chunk-XCM74QX2.js → chunk-P6FYL3PM.js} +5 -1
- package/dist/{chunk-WSCXOKCX.js → chunk-VLXKSNSJ.js} +5 -1
- package/dist/clients/fanatics.css +4075 -3817
- package/dist/clients/fanatics.js +2 -2
- package/dist/components/Box/Box.d.ts +22 -22
- package/dist/components/FunDivider/FunDivider.d.ts +2 -1
- package/dist/css/sprinkles.css.d.ts +34 -22
- package/dist/hooks/queries/useFops.d.ts +4 -198
- package/dist/hooks/statsig/useDynamicConfig.d.ts +3 -1
- package/dist/hooks/useCheckoutTransferInit.d.ts +5 -1
- package/dist/hooks/usePaymentSources.d.ts +6 -2
- package/dist/hooks/useScrollDivider.d.ts +1 -0
- package/dist/index.css +4122 -3825
- package/dist/index.js +651 -326
- package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +4 -3
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +4 -0
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/providers/FunkitThemeProvider.d.ts +18 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- 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 +49 -49
- 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 +2 -2
- package/dist/wallets/walletConnectors/{chunk-6YO27XOM.js → chunk-3Y2GG3PM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HETS3KKI.js → chunk-3YCR2ZB4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HOPH3TQ3.js → chunk-C4RP2DNH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IICWJWGZ.js → chunk-CBI3SGOC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GVOQTORD.js → chunk-CMLFDRCP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LI6QY2B5.js → chunk-COX3VEDR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-EKJHJFRN.js → chunk-CT3QPTAU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-7OARWILZ.js → chunk-DWMUM4F6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CJJT7LMT.js → chunk-FDVJHNLL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6UCI7GM6.js → chunk-I7K6LUZR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XBLHZICW.js → chunk-N3UJMC3V.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4C7ER452.js → chunk-NEK7T3IC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PKMAPNN6.js → chunk-RLLTYOWT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GH4M6FTK.js → chunk-TIT5F32X.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TTHM3WUR.js → chunk-UPUDLUBT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-53VYSPXK.js → chunk-UVMMPRDM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GSHSWVEG.js → chunk-UVYZSGIX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KO56HCTI.js → chunk-ZMRIQOR5.js} +3 -3
|
@@ -1,206 +1,12 @@
|
|
|
1
|
+
import { type GenericFormOfPayment, type SavedFormOfPayment } from '@funkit/api-base';
|
|
1
2
|
/**
|
|
2
3
|
* Hook to fetch available forms of payment from the /fops API.
|
|
3
4
|
* Returns generic and saved payment options from providers like Swapped.
|
|
4
5
|
*/
|
|
5
6
|
export declare const useFops: () => {
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
data: {
|
|
8
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
9
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
10
|
-
};
|
|
11
|
-
error: Error;
|
|
12
|
-
isError: true;
|
|
13
|
-
isPending: false;
|
|
14
|
-
isLoadingError: false;
|
|
15
|
-
isRefetchError: true;
|
|
16
|
-
isSuccess: false;
|
|
17
|
-
isPlaceholderData: false;
|
|
18
|
-
status: "error";
|
|
19
|
-
dataUpdatedAt: number;
|
|
20
|
-
errorUpdatedAt: number;
|
|
21
|
-
failureCount: number;
|
|
22
|
-
failureReason: Error | null;
|
|
23
|
-
errorUpdateCount: number;
|
|
24
|
-
isFetched: boolean;
|
|
25
|
-
isFetchedAfterMount: boolean;
|
|
26
|
-
isFetching: boolean;
|
|
27
|
-
isInitialLoading: boolean;
|
|
28
|
-
isPaused: boolean;
|
|
29
|
-
isRefetching: boolean;
|
|
30
|
-
isStale: boolean;
|
|
31
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
32
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
33
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
34
|
-
}, Error>>;
|
|
35
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
36
|
-
promise: Promise<{
|
|
37
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
38
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
39
|
-
}>;
|
|
40
|
-
} | {
|
|
41
|
-
isLoading: boolean;
|
|
42
7
|
data: {
|
|
43
|
-
genericFormsOfPayments:
|
|
44
|
-
savedFormsOfPayments:
|
|
45
|
-
};
|
|
46
|
-
error: null;
|
|
47
|
-
isError: false;
|
|
48
|
-
isPending: false;
|
|
49
|
-
isLoadingError: false;
|
|
50
|
-
isRefetchError: false;
|
|
51
|
-
isSuccess: true;
|
|
52
|
-
isPlaceholderData: false;
|
|
53
|
-
status: "success";
|
|
54
|
-
dataUpdatedAt: number;
|
|
55
|
-
errorUpdatedAt: number;
|
|
56
|
-
failureCount: number;
|
|
57
|
-
failureReason: Error | null;
|
|
58
|
-
errorUpdateCount: number;
|
|
59
|
-
isFetched: boolean;
|
|
60
|
-
isFetchedAfterMount: boolean;
|
|
61
|
-
isFetching: boolean;
|
|
62
|
-
isInitialLoading: boolean;
|
|
63
|
-
isPaused: boolean;
|
|
64
|
-
isRefetching: boolean;
|
|
65
|
-
isStale: boolean;
|
|
66
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
67
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
68
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
69
|
-
}, Error>>;
|
|
70
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
71
|
-
promise: Promise<{
|
|
72
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
73
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
74
|
-
}>;
|
|
75
|
-
} | {
|
|
76
|
-
isLoading: boolean;
|
|
77
|
-
data: undefined;
|
|
78
|
-
error: Error;
|
|
79
|
-
isError: true;
|
|
80
|
-
isPending: false;
|
|
81
|
-
isLoadingError: true;
|
|
82
|
-
isRefetchError: false;
|
|
83
|
-
isSuccess: false;
|
|
84
|
-
isPlaceholderData: false;
|
|
85
|
-
status: "error";
|
|
86
|
-
dataUpdatedAt: number;
|
|
87
|
-
errorUpdatedAt: number;
|
|
88
|
-
failureCount: number;
|
|
89
|
-
failureReason: Error | null;
|
|
90
|
-
errorUpdateCount: number;
|
|
91
|
-
isFetched: boolean;
|
|
92
|
-
isFetchedAfterMount: boolean;
|
|
93
|
-
isFetching: boolean;
|
|
94
|
-
isInitialLoading: boolean;
|
|
95
|
-
isPaused: boolean;
|
|
96
|
-
isRefetching: boolean;
|
|
97
|
-
isStale: boolean;
|
|
98
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
99
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
100
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
101
|
-
}, Error>>;
|
|
102
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
103
|
-
promise: Promise<{
|
|
104
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
105
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
106
|
-
}>;
|
|
107
|
-
} | {
|
|
8
|
+
genericFormsOfPayments: GenericFormOfPayment[];
|
|
9
|
+
savedFormsOfPayments: SavedFormOfPayment[];
|
|
10
|
+
} | undefined;
|
|
108
11
|
isLoading: boolean;
|
|
109
|
-
data: undefined;
|
|
110
|
-
error: null;
|
|
111
|
-
isError: false;
|
|
112
|
-
isPending: true;
|
|
113
|
-
isLoadingError: false;
|
|
114
|
-
isRefetchError: false;
|
|
115
|
-
isSuccess: false;
|
|
116
|
-
isPlaceholderData: false;
|
|
117
|
-
status: "pending";
|
|
118
|
-
dataUpdatedAt: number;
|
|
119
|
-
errorUpdatedAt: number;
|
|
120
|
-
failureCount: number;
|
|
121
|
-
failureReason: Error | null;
|
|
122
|
-
errorUpdateCount: number;
|
|
123
|
-
isFetched: boolean;
|
|
124
|
-
isFetchedAfterMount: boolean;
|
|
125
|
-
isFetching: boolean;
|
|
126
|
-
isInitialLoading: boolean;
|
|
127
|
-
isPaused: boolean;
|
|
128
|
-
isRefetching: boolean;
|
|
129
|
-
isStale: boolean;
|
|
130
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
131
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
132
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
133
|
-
}, Error>>;
|
|
134
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
135
|
-
promise: Promise<{
|
|
136
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
137
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
138
|
-
}>;
|
|
139
|
-
} | {
|
|
140
|
-
isLoading: boolean;
|
|
141
|
-
data: undefined;
|
|
142
|
-
error: null;
|
|
143
|
-
isError: false;
|
|
144
|
-
isPending: true;
|
|
145
|
-
isLoadingError: false;
|
|
146
|
-
isRefetchError: false;
|
|
147
|
-
isSuccess: false;
|
|
148
|
-
isPlaceholderData: false;
|
|
149
|
-
status: "pending";
|
|
150
|
-
dataUpdatedAt: number;
|
|
151
|
-
errorUpdatedAt: number;
|
|
152
|
-
failureCount: number;
|
|
153
|
-
failureReason: Error | null;
|
|
154
|
-
errorUpdateCount: number;
|
|
155
|
-
isFetched: boolean;
|
|
156
|
-
isFetchedAfterMount: boolean;
|
|
157
|
-
isFetching: boolean;
|
|
158
|
-
isInitialLoading: boolean;
|
|
159
|
-
isPaused: boolean;
|
|
160
|
-
isRefetching: boolean;
|
|
161
|
-
isStale: boolean;
|
|
162
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
163
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
164
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
165
|
-
}, Error>>;
|
|
166
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
167
|
-
promise: Promise<{
|
|
168
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
169
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
170
|
-
}>;
|
|
171
|
-
} | {
|
|
172
|
-
isLoading: boolean;
|
|
173
|
-
data: {
|
|
174
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
175
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
176
|
-
};
|
|
177
|
-
isError: false;
|
|
178
|
-
error: null;
|
|
179
|
-
isPending: false;
|
|
180
|
-
isLoadingError: false;
|
|
181
|
-
isRefetchError: false;
|
|
182
|
-
isSuccess: true;
|
|
183
|
-
isPlaceholderData: true;
|
|
184
|
-
status: "success";
|
|
185
|
-
dataUpdatedAt: number;
|
|
186
|
-
errorUpdatedAt: number;
|
|
187
|
-
failureCount: number;
|
|
188
|
-
failureReason: Error | null;
|
|
189
|
-
errorUpdateCount: number;
|
|
190
|
-
isFetched: boolean;
|
|
191
|
-
isFetchedAfterMount: boolean;
|
|
192
|
-
isFetching: boolean;
|
|
193
|
-
isInitialLoading: boolean;
|
|
194
|
-
isPaused: boolean;
|
|
195
|
-
isRefetching: boolean;
|
|
196
|
-
isStale: boolean;
|
|
197
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
198
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
199
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
200
|
-
}, Error>>;
|
|
201
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
202
|
-
promise: Promise<{
|
|
203
|
-
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
204
|
-
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
205
|
-
}>;
|
|
206
12
|
};
|
|
@@ -2,5 +2,7 @@ import fallbackDynamicConfigs from '../../__generated__/default_configs';
|
|
|
2
2
|
type FallbackDynamicConfigs = typeof fallbackDynamicConfigs;
|
|
3
3
|
type DynamicConfigName = keyof FallbackDynamicConfigs;
|
|
4
4
|
export type DynamicConfigValue<Name extends DynamicConfigName> = FallbackDynamicConfigs[Name]['value'];
|
|
5
|
-
export declare const useDynamicConfig: <Name extends DynamicConfigName>(name: Name
|
|
5
|
+
export declare const useDynamicConfig: <Name extends DynamicConfigName>(name: Name, options?: {
|
|
6
|
+
bypassCountryCode?: boolean;
|
|
7
|
+
}) => DynamicConfigValue<Name>;
|
|
6
8
|
export {};
|
|
@@ -22,7 +22,11 @@ export declare function getCheckoutTokenTransferParams({ checkoutConfig, userId,
|
|
|
22
22
|
apiKey: string;
|
|
23
23
|
recipientAddr: FunAddress;
|
|
24
24
|
} | undefined;
|
|
25
|
-
export declare function useIsQRCodeTransferEnabled():
|
|
25
|
+
export declare function useIsQRCodeTransferEnabled(): {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
comingSoon: boolean;
|
|
28
|
+
geoblocked: boolean;
|
|
29
|
+
};
|
|
26
30
|
/**
|
|
27
31
|
* creates QR code transfer EOA
|
|
28
32
|
*/
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { type ConnectablePaymentMethodInfo, PaymentMethod } from '../domains/paymentMethods';
|
|
2
2
|
export declare function usePaymentMethodEnablement(): {
|
|
3
|
-
isSwappedEnabled:
|
|
3
|
+
isSwappedEnabled: boolean;
|
|
4
4
|
isFiatEnabled: boolean;
|
|
5
5
|
isTokenTransferEnabled: boolean;
|
|
6
6
|
isMeldEnabled: boolean;
|
|
7
7
|
isBrokerageEnabled: boolean;
|
|
8
8
|
};
|
|
9
9
|
export type PaymentMethodType = 'crypto' | 'fiat';
|
|
10
|
+
export type UnavailablePaymentSource = {
|
|
11
|
+
method: PaymentMethod;
|
|
12
|
+
reason: 'geoblocked' | 'comingSoon';
|
|
13
|
+
};
|
|
10
14
|
export declare const usePaymentSources: (currentPaymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string) => {
|
|
11
15
|
isFallback: boolean;
|
|
12
16
|
preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
|
|
13
17
|
moreSources: PaymentMethod[];
|
|
14
|
-
|
|
18
|
+
unavailable: UnavailablePaymentSource[];
|
|
15
19
|
hasUsableBalance: boolean;
|
|
16
20
|
};
|