@funkit/connect 9.3.2 → 9.4.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 +32 -0
- package/dist/{chunk-MXNOQTKX.js → chunk-BSF2AKBC.js} +16 -0
- package/dist/{chunk-AGBRSMZ7.js → chunk-DBRUJYOQ.js} +12 -1
- package/dist/{chunk-RHUOOPDI.js → chunk-IZC4ZKKQ.js} +12 -1
- package/dist/clients/fanatics.css +5263 -4393
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/polymarket.d.ts +5 -1
- package/dist/clients/polymarket.js +11 -15
- package/dist/components/Box/Box.d.ts +40 -40
- package/dist/components/Dropdown/BaseDropdown.css.d.ts +2 -0
- package/dist/components/Dropdown/BaseDropdown.d.ts +49 -6
- package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +2 -2
- package/dist/components/FunInput/FunInput.css.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/tabs.css.d.ts +1 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +108 -40
- package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -1
- package/dist/hooks/useScrollDivider.d.ts +10 -2
- package/dist/index.css +5321 -4400
- package/dist/index.d.ts +1 -0
- package/dist/index.js +863 -570
- package/dist/modals/CheckoutModal/CheckoutBlockedReason.d.ts +1 -0
- package/dist/modals/CheckoutModal/useCheckoutBlocked.d.ts +18 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -0
- package/dist/providers/FunkitThemeProvider.d.ts +102 -0
- package/dist/providers/GeneralWalletProvider.d.ts +5 -5
- 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 +1 -1
- package/dist/wallets/walletConnectors/index.js +45 -45
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CheckoutBlockedReason = 'fullGeoblock' | 'semiGeoblock' | 'security' | 'unloggedin';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CheckoutBlockedReason } from './CheckoutBlockedReason';
|
|
2
|
+
import { FunCheckoutStep } from './FunCheckoutStep';
|
|
3
|
+
interface UseCheckoutBlockedParams {
|
|
4
|
+
isModalBlocked: boolean;
|
|
5
|
+
modalStep: FunCheckoutStep;
|
|
6
|
+
onCheckoutBlocked?: (params: {
|
|
7
|
+
blockedReason: CheckoutBlockedReason;
|
|
8
|
+
}) => void;
|
|
9
|
+
}
|
|
10
|
+
type CheckoutBlockedResult = {
|
|
11
|
+
blockedReason: CheckoutBlockedReason;
|
|
12
|
+
showBlockedUI: boolean;
|
|
13
|
+
} | {
|
|
14
|
+
blockedReason: null;
|
|
15
|
+
showBlockedUI: false;
|
|
16
|
+
};
|
|
17
|
+
export declare function useCheckoutBlocked(params: UseCheckoutBlockedParams): CheckoutBlockedResult;
|
|
18
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import type { FunAddress } from '@funkit/api-base';
|
|
|
2
2
|
import type { ApiCheckoutClientMetadata, ApiFunkitCheckoutActionParams, ApiFunkitCheckoutConfig } from '@funkit/utils';
|
|
3
3
|
import type { Address } from 'viem';
|
|
4
4
|
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
5
|
+
import type { CheckoutBlockedReason } from '../../modals/CheckoutModal/CheckoutBlockedReason';
|
|
5
6
|
import type { WithdrawalClient } from '../../wallets/Wallet';
|
|
6
7
|
import type { FunkitCheckoutQuoteResult } from '../FunkitHistoryContext';
|
|
7
8
|
export type FunkitCheckoutActionParams = ApiFunkitCheckoutActionParams;
|
|
@@ -172,6 +173,10 @@ export interface UseFunkitCheckoutProps {
|
|
|
172
173
|
}) => void;
|
|
173
174
|
/** @optional fires when a withdrawal is confirmed with the funkit server. Returns the newly created withdrawalId. **/
|
|
174
175
|
onWithdrawalConfirmation?: (withdrawalId: string) => void;
|
|
176
|
+
/** @optional fires when checkout is blocked (e.g. geo-restriction, security hold, or missing wallet connection). **/
|
|
177
|
+
onCheckoutBlocked?: (params: {
|
|
178
|
+
blockedReason: CheckoutBlockedReason;
|
|
179
|
+
}) => void;
|
|
175
180
|
/** @optional fires if the withdrawal fails at any point **/
|
|
176
181
|
onWithdrawalError?: (result: FunkitCheckoutResult) => void;
|
|
177
182
|
}
|
|
@@ -62,6 +62,13 @@ export declare const useActiveTheme: () => {
|
|
|
62
62
|
inputBorderHover: string;
|
|
63
63
|
activeTabBorderColor: string;
|
|
64
64
|
activeTabBackground: string;
|
|
65
|
+
inactiveTabBorderColor: string;
|
|
66
|
+
inactiveTabBackgroundBase: string;
|
|
67
|
+
inactiveTabBackgroundHover: string;
|
|
68
|
+
inactiveTabBackgroundActive: string;
|
|
69
|
+
activeTabText: string;
|
|
70
|
+
inactiveTabTextBase: string;
|
|
71
|
+
inactiveTabHover: string;
|
|
65
72
|
actionColor: string;
|
|
66
73
|
actionColorHover: string;
|
|
67
74
|
actionColorDisabled: string;
|
|
@@ -142,9 +149,12 @@ export declare const useActiveTheme: () => {
|
|
|
142
149
|
dropdownActiveItemBackgroundDisabled: string;
|
|
143
150
|
dropdownActiveItemBorderBase: string;
|
|
144
151
|
dropdownActiveItemBorderHover: string;
|
|
152
|
+
dropdownGroupHeader: string;
|
|
145
153
|
selectedDropdownItemBackground: string;
|
|
146
154
|
alwaysVisibleLabelBackgroundHover: string;
|
|
147
155
|
selectedDropdownItemText: string;
|
|
156
|
+
useConnectedBackgroundBase: string;
|
|
157
|
+
useConnectedBackgroundHover: string;
|
|
148
158
|
copyButtonBackgroundBase: string;
|
|
149
159
|
copyButtonBackgroundHover: string;
|
|
150
160
|
copyButtonBackgroundActive: string;
|
|
@@ -195,6 +205,7 @@ export declare const useActiveTheme: () => {
|
|
|
195
205
|
buttonTextPrimary: string;
|
|
196
206
|
buttonTextSecondary: string;
|
|
197
207
|
buttonTextTertiary: string;
|
|
208
|
+
dropdownGroupHeader: string;
|
|
198
209
|
header: string;
|
|
199
210
|
inputAmount: string;
|
|
200
211
|
txStatusDescription: string;
|
|
@@ -207,6 +218,7 @@ export declare const useActiveTheme: () => {
|
|
|
207
218
|
bold: string;
|
|
208
219
|
heavy: string;
|
|
209
220
|
cryptoCashToggle: string;
|
|
221
|
+
dropdownGroupHeader: string;
|
|
210
222
|
inputAmount: string;
|
|
211
223
|
inputLabel: string;
|
|
212
224
|
inputValue: string;
|
|
@@ -300,6 +312,10 @@ export declare const useActiveTheme: () => {
|
|
|
300
312
|
fontSize: string;
|
|
301
313
|
lineHeight: string;
|
|
302
314
|
};
|
|
315
|
+
dropdownGroupHeader: {
|
|
316
|
+
fontSize: string;
|
|
317
|
+
lineHeight: string;
|
|
318
|
+
};
|
|
303
319
|
inputAmount: {
|
|
304
320
|
fontSize: string;
|
|
305
321
|
lineHeight: string;
|
|
@@ -400,6 +416,14 @@ export declare const useActiveTheme: () => {
|
|
|
400
416
|
fontSize: string;
|
|
401
417
|
lineHeight: string;
|
|
402
418
|
};
|
|
419
|
+
paymentFeeSummaryTooltip: {
|
|
420
|
+
fontSize: string;
|
|
421
|
+
lineHeight: string;
|
|
422
|
+
};
|
|
423
|
+
tooltipContent: {
|
|
424
|
+
fontSize: string;
|
|
425
|
+
lineHeight: string;
|
|
426
|
+
};
|
|
403
427
|
};
|
|
404
428
|
radii: {
|
|
405
429
|
actionButton: string;
|
|
@@ -427,6 +451,8 @@ export declare const useActiveTheme: () => {
|
|
|
427
451
|
activeOptionBorderWidth: string;
|
|
428
452
|
buttonTertiaryBorderWidth: string;
|
|
429
453
|
cryptoCashToggleContainerBorderWidth: string;
|
|
454
|
+
cryptoCashToggleActiveTabBorderWidth: string;
|
|
455
|
+
cryptoCashToggleInactiveTabBorderWidth: string;
|
|
430
456
|
txSummaryBoxBorderWidth: string;
|
|
431
457
|
};
|
|
432
458
|
shadows: {
|
|
@@ -462,6 +488,13 @@ export declare const useActiveTheme: () => {
|
|
|
462
488
|
cryptoCashToggleMarginBottom: string;
|
|
463
489
|
cryptoCashToggleMarginTop: string;
|
|
464
490
|
cryptoCashToggleTabPaddingY: string;
|
|
491
|
+
dropdownItemIconGap: string;
|
|
492
|
+
dropdownItemPaddingX: string;
|
|
493
|
+
dropdownItemPaddingY: string;
|
|
494
|
+
dropdownCompactPaddingX: string;
|
|
495
|
+
dropdownCompactPaddingY: string;
|
|
496
|
+
dropdownPaddingX: string;
|
|
497
|
+
dropdownPaddingY: string;
|
|
465
498
|
modalBaseHorizontalPadding: string;
|
|
466
499
|
modalBottomBarButtonPaddingY: string;
|
|
467
500
|
modalBottomHorizontalPadding: string;
|
|
@@ -490,6 +523,7 @@ export declare const useActiveTheme: () => {
|
|
|
490
523
|
inputPaddingY: string;
|
|
491
524
|
dropdownActiveItemRegularSizePaddingY: string;
|
|
492
525
|
assetListDefaultGap: string;
|
|
526
|
+
dropdownGroupDividerMarginY: string;
|
|
493
527
|
};
|
|
494
528
|
textTransforms: {
|
|
495
529
|
inputAmountQuickOptionButton: string;
|
|
@@ -552,6 +586,13 @@ export declare const useActiveTheme: () => {
|
|
|
552
586
|
inputBorderHover: string;
|
|
553
587
|
activeTabBorderColor: string;
|
|
554
588
|
activeTabBackground: string;
|
|
589
|
+
inactiveTabBorderColor: string;
|
|
590
|
+
inactiveTabBackgroundBase: string;
|
|
591
|
+
inactiveTabBackgroundHover: string;
|
|
592
|
+
inactiveTabBackgroundActive: string;
|
|
593
|
+
activeTabText: string;
|
|
594
|
+
inactiveTabTextBase: string;
|
|
595
|
+
inactiveTabHover: string;
|
|
555
596
|
actionColor: string;
|
|
556
597
|
actionColorHover: string;
|
|
557
598
|
actionColorDisabled: string;
|
|
@@ -632,9 +673,12 @@ export declare const useActiveTheme: () => {
|
|
|
632
673
|
dropdownActiveItemBackgroundDisabled: string;
|
|
633
674
|
dropdownActiveItemBorderBase: string;
|
|
634
675
|
dropdownActiveItemBorderHover: string;
|
|
676
|
+
dropdownGroupHeader: string;
|
|
635
677
|
selectedDropdownItemBackground: string;
|
|
636
678
|
alwaysVisibleLabelBackgroundHover: string;
|
|
637
679
|
selectedDropdownItemText: string;
|
|
680
|
+
useConnectedBackgroundBase: string;
|
|
681
|
+
useConnectedBackgroundHover: string;
|
|
638
682
|
copyButtonBackgroundBase: string;
|
|
639
683
|
copyButtonBackgroundHover: string;
|
|
640
684
|
copyButtonBackgroundActive: string;
|
|
@@ -685,6 +729,7 @@ export declare const useActiveTheme: () => {
|
|
|
685
729
|
buttonTextPrimary: string;
|
|
686
730
|
buttonTextSecondary: string;
|
|
687
731
|
buttonTextTertiary: string;
|
|
732
|
+
dropdownGroupHeader: string;
|
|
688
733
|
header: string;
|
|
689
734
|
inputAmount: string;
|
|
690
735
|
txStatusDescription: string;
|
|
@@ -697,6 +742,7 @@ export declare const useActiveTheme: () => {
|
|
|
697
742
|
bold: string;
|
|
698
743
|
heavy: string;
|
|
699
744
|
cryptoCashToggle: string;
|
|
745
|
+
dropdownGroupHeader: string;
|
|
700
746
|
inputAmount: string;
|
|
701
747
|
inputLabel: string;
|
|
702
748
|
inputValue: string;
|
|
@@ -790,6 +836,10 @@ export declare const useActiveTheme: () => {
|
|
|
790
836
|
fontSize: string;
|
|
791
837
|
lineHeight: string;
|
|
792
838
|
};
|
|
839
|
+
dropdownGroupHeader: {
|
|
840
|
+
fontSize: string;
|
|
841
|
+
lineHeight: string;
|
|
842
|
+
};
|
|
793
843
|
inputAmount: {
|
|
794
844
|
fontSize: string;
|
|
795
845
|
lineHeight: string;
|
|
@@ -890,6 +940,14 @@ export declare const useActiveTheme: () => {
|
|
|
890
940
|
fontSize: string;
|
|
891
941
|
lineHeight: string;
|
|
892
942
|
};
|
|
943
|
+
paymentFeeSummaryTooltip: {
|
|
944
|
+
fontSize: string;
|
|
945
|
+
lineHeight: string;
|
|
946
|
+
};
|
|
947
|
+
tooltipContent: {
|
|
948
|
+
fontSize: string;
|
|
949
|
+
lineHeight: string;
|
|
950
|
+
};
|
|
893
951
|
};
|
|
894
952
|
radii: {
|
|
895
953
|
actionButton: string;
|
|
@@ -917,6 +975,8 @@ export declare const useActiveTheme: () => {
|
|
|
917
975
|
activeOptionBorderWidth: string;
|
|
918
976
|
buttonTertiaryBorderWidth: string;
|
|
919
977
|
cryptoCashToggleContainerBorderWidth: string;
|
|
978
|
+
cryptoCashToggleActiveTabBorderWidth: string;
|
|
979
|
+
cryptoCashToggleInactiveTabBorderWidth: string;
|
|
920
980
|
txSummaryBoxBorderWidth: string;
|
|
921
981
|
};
|
|
922
982
|
shadows: {
|
|
@@ -952,6 +1012,13 @@ export declare const useActiveTheme: () => {
|
|
|
952
1012
|
cryptoCashToggleMarginBottom: string;
|
|
953
1013
|
cryptoCashToggleMarginTop: string;
|
|
954
1014
|
cryptoCashToggleTabPaddingY: string;
|
|
1015
|
+
dropdownItemIconGap: string;
|
|
1016
|
+
dropdownItemPaddingX: string;
|
|
1017
|
+
dropdownItemPaddingY: string;
|
|
1018
|
+
dropdownCompactPaddingX: string;
|
|
1019
|
+
dropdownCompactPaddingY: string;
|
|
1020
|
+
dropdownPaddingX: string;
|
|
1021
|
+
dropdownPaddingY: string;
|
|
955
1022
|
modalBaseHorizontalPadding: string;
|
|
956
1023
|
modalBottomBarButtonPaddingY: string;
|
|
957
1024
|
modalBottomHorizontalPadding: string;
|
|
@@ -980,6 +1047,7 @@ export declare const useActiveTheme: () => {
|
|
|
980
1047
|
inputPaddingY: string;
|
|
981
1048
|
dropdownActiveItemRegularSizePaddingY: string;
|
|
982
1049
|
assetListDefaultGap: string;
|
|
1050
|
+
dropdownGroupDividerMarginY: string;
|
|
983
1051
|
};
|
|
984
1052
|
textTransforms: {
|
|
985
1053
|
inputAmountQuickOptionButton: string;
|
|
@@ -1040,6 +1108,13 @@ export declare const useActiveTheme: () => {
|
|
|
1040
1108
|
inputBorderHover: string;
|
|
1041
1109
|
activeTabBorderColor: string;
|
|
1042
1110
|
activeTabBackground: string;
|
|
1111
|
+
inactiveTabBorderColor: string;
|
|
1112
|
+
inactiveTabBackgroundBase: string;
|
|
1113
|
+
inactiveTabBackgroundHover: string;
|
|
1114
|
+
inactiveTabBackgroundActive: string;
|
|
1115
|
+
activeTabText: string;
|
|
1116
|
+
inactiveTabTextBase: string;
|
|
1117
|
+
inactiveTabHover: string;
|
|
1043
1118
|
actionColor: string;
|
|
1044
1119
|
actionColorHover: string;
|
|
1045
1120
|
actionColorDisabled: string;
|
|
@@ -1120,9 +1195,12 @@ export declare const useActiveTheme: () => {
|
|
|
1120
1195
|
dropdownActiveItemBackgroundDisabled: string;
|
|
1121
1196
|
dropdownActiveItemBorderBase: string;
|
|
1122
1197
|
dropdownActiveItemBorderHover: string;
|
|
1198
|
+
dropdownGroupHeader: string;
|
|
1123
1199
|
selectedDropdownItemBackground: string;
|
|
1124
1200
|
alwaysVisibleLabelBackgroundHover: string;
|
|
1125
1201
|
selectedDropdownItemText: string;
|
|
1202
|
+
useConnectedBackgroundBase: string;
|
|
1203
|
+
useConnectedBackgroundHover: string;
|
|
1126
1204
|
copyButtonBackgroundBase: string;
|
|
1127
1205
|
copyButtonBackgroundHover: string;
|
|
1128
1206
|
copyButtonBackgroundActive: string;
|
|
@@ -1173,6 +1251,7 @@ export declare const useActiveTheme: () => {
|
|
|
1173
1251
|
buttonTextPrimary: string;
|
|
1174
1252
|
buttonTextSecondary: string;
|
|
1175
1253
|
buttonTextTertiary: string;
|
|
1254
|
+
dropdownGroupHeader: string;
|
|
1176
1255
|
header: string;
|
|
1177
1256
|
inputAmount: string;
|
|
1178
1257
|
txStatusDescription: string;
|
|
@@ -1185,6 +1264,7 @@ export declare const useActiveTheme: () => {
|
|
|
1185
1264
|
bold: string;
|
|
1186
1265
|
heavy: string;
|
|
1187
1266
|
cryptoCashToggle: string;
|
|
1267
|
+
dropdownGroupHeader: string;
|
|
1188
1268
|
inputAmount: string;
|
|
1189
1269
|
inputLabel: string;
|
|
1190
1270
|
inputValue: string;
|
|
@@ -1278,6 +1358,10 @@ export declare const useActiveTheme: () => {
|
|
|
1278
1358
|
fontSize: string;
|
|
1279
1359
|
lineHeight: string;
|
|
1280
1360
|
};
|
|
1361
|
+
dropdownGroupHeader: {
|
|
1362
|
+
fontSize: string;
|
|
1363
|
+
lineHeight: string;
|
|
1364
|
+
};
|
|
1281
1365
|
inputAmount: {
|
|
1282
1366
|
fontSize: string;
|
|
1283
1367
|
lineHeight: string;
|
|
@@ -1378,6 +1462,14 @@ export declare const useActiveTheme: () => {
|
|
|
1378
1462
|
fontSize: string;
|
|
1379
1463
|
lineHeight: string;
|
|
1380
1464
|
};
|
|
1465
|
+
paymentFeeSummaryTooltip: {
|
|
1466
|
+
fontSize: string;
|
|
1467
|
+
lineHeight: string;
|
|
1468
|
+
};
|
|
1469
|
+
tooltipContent: {
|
|
1470
|
+
fontSize: string;
|
|
1471
|
+
lineHeight: string;
|
|
1472
|
+
};
|
|
1381
1473
|
};
|
|
1382
1474
|
radii: {
|
|
1383
1475
|
actionButton: string;
|
|
@@ -1405,6 +1497,8 @@ export declare const useActiveTheme: () => {
|
|
|
1405
1497
|
activeOptionBorderWidth: string;
|
|
1406
1498
|
buttonTertiaryBorderWidth: string;
|
|
1407
1499
|
cryptoCashToggleContainerBorderWidth: string;
|
|
1500
|
+
cryptoCashToggleActiveTabBorderWidth: string;
|
|
1501
|
+
cryptoCashToggleInactiveTabBorderWidth: string;
|
|
1408
1502
|
txSummaryBoxBorderWidth: string;
|
|
1409
1503
|
};
|
|
1410
1504
|
shadows: {
|
|
@@ -1440,6 +1534,13 @@ export declare const useActiveTheme: () => {
|
|
|
1440
1534
|
cryptoCashToggleMarginBottom: string;
|
|
1441
1535
|
cryptoCashToggleMarginTop: string;
|
|
1442
1536
|
cryptoCashToggleTabPaddingY: string;
|
|
1537
|
+
dropdownItemIconGap: string;
|
|
1538
|
+
dropdownItemPaddingX: string;
|
|
1539
|
+
dropdownItemPaddingY: string;
|
|
1540
|
+
dropdownCompactPaddingX: string;
|
|
1541
|
+
dropdownCompactPaddingY: string;
|
|
1542
|
+
dropdownPaddingX: string;
|
|
1543
|
+
dropdownPaddingY: string;
|
|
1443
1544
|
modalBaseHorizontalPadding: string;
|
|
1444
1545
|
modalBottomBarButtonPaddingY: string;
|
|
1445
1546
|
modalBottomHorizontalPadding: string;
|
|
@@ -1468,6 +1569,7 @@ export declare const useActiveTheme: () => {
|
|
|
1468
1569
|
inputPaddingY: string;
|
|
1469
1570
|
dropdownActiveItemRegularSizePaddingY: string;
|
|
1470
1571
|
assetListDefaultGap: string;
|
|
1572
|
+
dropdownGroupDividerMarginY: string;
|
|
1471
1573
|
};
|
|
1472
1574
|
textTransforms: {
|
|
1473
1575
|
inputAmountQuickOptionButton: string;
|
|
@@ -48,7 +48,7 @@ export declare const useFunkitAccount: () => {
|
|
|
48
48
|
addresses: readonly [Address, ...Address[]];
|
|
49
49
|
chain: import("viem").Chain | undefined;
|
|
50
50
|
chainId: number;
|
|
51
|
-
connector: import("
|
|
51
|
+
connector: import("wagmi").Connector;
|
|
52
52
|
isConnecting: false;
|
|
53
53
|
isDisconnected: false;
|
|
54
54
|
isReconnecting: false;
|
|
@@ -61,7 +61,7 @@ export declare const useFunkitAccount: () => {
|
|
|
61
61
|
addresses: readonly Address[] | undefined;
|
|
62
62
|
chain: import("viem").Chain | undefined;
|
|
63
63
|
chainId: number | undefined;
|
|
64
|
-
connector: import("
|
|
64
|
+
connector: import("wagmi").Connector | undefined;
|
|
65
65
|
isConnecting: false;
|
|
66
66
|
isDisconnected: false;
|
|
67
67
|
isReconnecting: true;
|
|
@@ -74,7 +74,7 @@ export declare const useFunkitAccount: () => {
|
|
|
74
74
|
addresses: readonly Address[] | undefined;
|
|
75
75
|
chain: import("viem").Chain | undefined;
|
|
76
76
|
chainId: number | undefined;
|
|
77
|
-
connector: import("
|
|
77
|
+
connector: import("wagmi").Connector | undefined;
|
|
78
78
|
isReconnecting: false;
|
|
79
79
|
isConnecting: true;
|
|
80
80
|
isDisconnected: false;
|
|
@@ -99,7 +99,7 @@ export declare const useFunkitReconnect: () => UseReconnectReturnType;
|
|
|
99
99
|
export declare const useFunkitSwitchChains: ({ onSettled, }: {
|
|
100
100
|
onSettled?: () => void;
|
|
101
101
|
}) => {
|
|
102
|
-
switchChain: import("wagmi/query").SwitchChainMutate<import("
|
|
103
|
-
switchChainAsync: import("wagmi/query").SwitchChainMutateAsync<import("
|
|
102
|
+
switchChain: import("wagmi/query").SwitchChainMutate<import("wagmi").Config, undefined>;
|
|
103
|
+
switchChainAsync: import("wagmi/query").SwitchChainMutateAsync<import("wagmi").Config, undefined>;
|
|
104
104
|
pendingChainId: number | null;
|
|
105
105
|
};
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ type ValidateCheckoutConfigReturn = Promise<{
|
|
|
25
25
|
* @param config - The checkout configuration to validate.
|
|
26
26
|
* @returns An object indicating whether the configuration is valid and a message if it is not.
|
|
27
27
|
*/
|
|
28
|
-
export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig
|
|
28
|
+
export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>, apiKey: string): ValidateCheckoutConfigReturn;
|
|
29
29
|
export declare const hasSufficientBalance: (wagmiConfig: UseConfigReturnType, walletAddress: string, tokenAddress: string, tokenChainId: string, requiredAssetAmount: number) => Promise<{
|
|
30
30
|
balance: number;
|
|
31
31
|
result: boolean;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
zealWallet
|
|
4
|
+
} from "./chunk-HE2LMIPD.js";
|
|
2
5
|
import {
|
|
3
6
|
zerionWallet
|
|
4
7
|
} from "./chunk-TTHM3WUR.js";
|
|
5
|
-
import {
|
|
6
|
-
mewWallet
|
|
7
|
-
} from "./chunk-HKVDCVCG.js";
|
|
8
8
|
import {
|
|
9
9
|
talismanWallet
|
|
10
10
|
} from "./chunk-6MFOL6EB.js";
|
|
11
|
+
import {
|
|
12
|
+
tokenPocketWallet
|
|
13
|
+
} from "./chunk-4C7ER452.js";
|
|
14
|
+
import {
|
|
15
|
+
subWallet
|
|
16
|
+
} from "./chunk-XBLHZICW.js";
|
|
11
17
|
import {
|
|
12
18
|
tokenaryWallet
|
|
13
19
|
} from "./chunk-34LO6Q7A.js";
|
|
@@ -23,69 +29,63 @@ import {
|
|
|
23
29
|
import {
|
|
24
30
|
xdefiWallet
|
|
25
31
|
} from "./chunk-O7RSASRH.js";
|
|
26
|
-
import {
|
|
27
|
-
zealWallet
|
|
28
|
-
} from "./chunk-HE2LMIPD.js";
|
|
29
|
-
import {
|
|
30
|
-
tokenPocketWallet
|
|
31
|
-
} from "./chunk-4C7ER452.js";
|
|
32
32
|
import {
|
|
33
33
|
rainbowWallet
|
|
34
34
|
} from "./chunk-GSHSWVEG.js";
|
|
35
|
+
import {
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-WFNPWKU3.js";
|
|
35
38
|
import {
|
|
36
39
|
ramperWallet
|
|
37
40
|
} from "./chunk-R4S234FL.js";
|
|
38
|
-
import {
|
|
39
|
-
roninWallet
|
|
40
|
-
} from "./chunk-PKMAPNN6.js";
|
|
41
41
|
import {
|
|
42
42
|
safeWallet
|
|
43
43
|
} from "./chunk-YKVWTGU7.js";
|
|
44
|
+
import {
|
|
45
|
+
roninWallet
|
|
46
|
+
} from "./chunk-PKMAPNN6.js";
|
|
44
47
|
import {
|
|
45
48
|
safeheronWallet
|
|
46
49
|
} from "./chunk-4R4AARTG.js";
|
|
47
50
|
import {
|
|
48
51
|
safepalWallet
|
|
49
52
|
} from "./chunk-IICWJWGZ.js";
|
|
50
|
-
import {
|
|
51
|
-
subWallet
|
|
52
|
-
} from "./chunk-XBLHZICW.js";
|
|
53
53
|
import {
|
|
54
54
|
tahoWallet
|
|
55
55
|
} from "./chunk-4BMUFNMT.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
mewWallet
|
|
58
|
+
} from "./chunk-HKVDCVCG.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
ledgerWallet
|
|
61
|
+
} from "./chunk-WKCCLGHJ.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-BVX22N7L.js";
|
|
65
65
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
66
|
+
okxWallet
|
|
67
|
+
} from "./chunk-LI6QY2B5.js";
|
|
68
68
|
import {
|
|
69
69
|
omniWallet
|
|
70
70
|
} from "./chunk-INNF7G5X.js";
|
|
71
|
+
import {
|
|
72
|
+
oneInchWallet
|
|
73
|
+
} from "./chunk-RVWLP4IM.js";
|
|
71
74
|
import {
|
|
72
75
|
oneKeyWallet
|
|
73
76
|
} from "./chunk-HE5J5T7X.js";
|
|
74
|
-
import {
|
|
75
|
-
rabbyWallet
|
|
76
|
-
} from "./chunk-WFNPWKU3.js";
|
|
77
77
|
import {
|
|
78
78
|
phantomWallet
|
|
79
79
|
} from "./chunk-XMNVOYSJ.js";
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
82
|
} from "./chunk-53VYSPXK.js";
|
|
83
|
-
import {
|
|
84
|
-
frontierWallet
|
|
85
|
-
} from "./chunk-CJJT7LMT.js";
|
|
86
83
|
import {
|
|
87
84
|
frameWallet
|
|
88
85
|
} from "./chunk-WDTNOIMF.js";
|
|
86
|
+
import {
|
|
87
|
+
frontierWallet
|
|
88
|
+
} from "./chunk-CJJT7LMT.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
91
|
} from "./chunk-7OARWILZ.js";
|
|
@@ -95,58 +95,58 @@ import {
|
|
|
95
95
|
import {
|
|
96
96
|
kresusWallet
|
|
97
97
|
} from "./chunk-G4V5B6YC.js";
|
|
98
|
-
import {
|
|
99
|
-
ledgerWallet
|
|
100
|
-
} from "./chunk-WKCCLGHJ.js";
|
|
101
98
|
import {
|
|
102
99
|
injectedWallet
|
|
103
100
|
} from "./chunk-W6MXINYY.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-HETS3KKI.js";
|
|
104
|
+
import {
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-6UCI7GM6.js";
|
|
107
107
|
import {
|
|
108
108
|
coin98Wallet
|
|
109
109
|
} from "./chunk-6YO27XOM.js";
|
|
110
|
-
import {
|
|
111
|
-
bitverseWallet
|
|
112
|
-
} from "./chunk-GROWFRGP.js";
|
|
113
110
|
import {
|
|
114
111
|
coinbaseWallet
|
|
115
112
|
} from "./chunk-RZXMOPIV.js";
|
|
113
|
+
import {
|
|
114
|
+
clvWallet
|
|
115
|
+
} from "./chunk-GVOQTORD.js";
|
|
116
|
+
import {
|
|
117
|
+
dawnWallet
|
|
118
|
+
} from "./chunk-TFVCCI2D.js";
|
|
116
119
|
import {
|
|
117
120
|
coreWallet
|
|
118
121
|
} from "./chunk-GH4M6FTK.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-JYVLYSH3.js";
|
|
122
|
-
import {
|
|
123
|
-
dawnWallet
|
|
124
|
-
} from "./chunk-TFVCCI2D.js";
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-W6TXXLCO.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-VUOAIUZE.js";
|
|
131
|
-
import {
|
|
132
|
-
bitgetWallet
|
|
133
|
-
} from "./chunk-HOPH3TQ3.js";
|
|
134
131
|
import {
|
|
135
132
|
bifrostWallet
|
|
136
133
|
} from "./chunk-EKJHJFRN.js";
|
|
137
134
|
import {
|
|
138
135
|
bitskiWallet
|
|
139
136
|
} from "./chunk-A7FNGC4A.js";
|
|
137
|
+
import {
|
|
138
|
+
bitverseWallet
|
|
139
|
+
} from "./chunk-GROWFRGP.js";
|
|
140
140
|
import {
|
|
141
141
|
bloomWallet
|
|
142
142
|
} from "./chunk-UB2SSFH7.js";
|
|
143
|
+
import {
|
|
144
|
+
bitgetWallet
|
|
145
|
+
} from "./chunk-HOPH3TQ3.js";
|
|
146
|
+
import "./chunk-MAPXJUOO.js";
|
|
143
147
|
import {
|
|
144
148
|
braveWallet
|
|
145
149
|
} from "./chunk-ZRNBHLUU.js";
|
|
146
|
-
import {
|
|
147
|
-
bybitWallet
|
|
148
|
-
} from "./chunk-6UCI7GM6.js";
|
|
149
|
-
import "./chunk-MAPXJUOO.js";
|
|
150
150
|
import "./chunk-BAVE62IL.js";
|
|
151
151
|
import "./chunk-KV4HGYM3.js";
|
|
152
152
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
"ua-parser-js": "^1.0.37",
|
|
104
104
|
"use-debounce": "^10.0.5",
|
|
105
105
|
"uuid": "^9.0.1",
|
|
106
|
-
"@funkit/api-base": "3.0.
|
|
107
|
-
"@funkit/fun-relay": "2.6.
|
|
108
|
-
"@funkit/utils": "1.2.
|
|
109
|
-
"@funkit/chains": "1.1.
|
|
106
|
+
"@funkit/api-base": "3.0.3",
|
|
107
|
+
"@funkit/fun-relay": "2.6.4",
|
|
108
|
+
"@funkit/utils": "1.2.5",
|
|
109
|
+
"@funkit/chains": "1.1.1"
|
|
110
110
|
},
|
|
111
111
|
"repository": {
|
|
112
112
|
"type": "git",
|