@funkit/connect 3.4.4 → 3.4.5

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/components/FunAssetAvatar/FunAssetAvatar.css.d.ts +0 -1
  3. package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
  4. package/dist/components/FunDivider/FunDivider.d.ts +1 -2
  5. package/dist/components/FunInput/FunInput.d.ts +1 -2
  6. package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -5
  7. package/dist/components/FunNotification/FunNotification.d.ts +4 -0
  8. package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -15
  9. package/dist/components/FunSelect/FunSelect.d.ts +3 -4
  10. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +4 -3
  11. package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +7 -2
  12. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +2 -2
  13. package/dist/consts/funkit.d.ts +1 -0
  14. package/dist/domains/asset.d.ts +2 -0
  15. package/dist/domains/checkoutFees.d.ts +2 -1
  16. package/dist/{hooks/useCheckoutStateBooleans.d.ts → domains/checkoutState.d.ts} +1 -1
  17. package/dist/domains/quote.d.ts +6 -4
  18. package/dist/hooks/useAutoClearState.d.ts +4 -0
  19. package/dist/hooks/useCountdown.d.ts +8 -0
  20. package/dist/hooks/useMesh.d.ts +1 -1
  21. package/dist/index.css +66 -52
  22. package/dist/index.js +3218 -3409
  23. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +17 -0
  24. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +28 -0
  25. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +22 -0
  26. package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +8 -0
  27. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +5 -3
  28. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +5 -2
  29. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +5 -2
  30. package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +7 -0
  31. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
  32. package/dist/modals/CheckoutModal/InputAmount/useCheckoutQuote.d.ts +0 -1
  33. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -7
  34. package/dist/modals/CheckoutModal/SourceChange.d.ts +1 -1
  35. package/dist/modals/CheckoutModal/TransferToken.d.ts +2 -4
  36. package/dist/modals/CheckoutModal/stepTransition.d.ts +4 -7
  37. package/dist/modals/CheckoutModal/useCheckoutQuote.d.ts +7 -0
  38. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +9 -0
  39. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
  40. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +1 -1
  41. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +0 -2
  42. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +7 -2
  43. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +1 -0
  44. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +1 -1
  45. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +5 -2
  46. package/dist/providers/FunkitCheckoutContext.d.ts +1 -1
  47. package/dist/providers/GeneralWalletProvider.d.ts +10 -10
  48. package/dist/utils/aborts.d.ts +1 -0
  49. package/dist/utils/assets.d.ts +9 -9
  50. package/dist/utils/combineChainSymbolOrAddress.d.ts +1 -1
  51. package/dist/utils/deepMerge.d.ts +5 -0
  52. package/dist/utils/flags/config.d.ts +4 -1
  53. package/dist/utils/payment.d.ts +3 -3
  54. package/dist/wallets/walletConnectors/index.js +50 -50
  55. package/package.json +3 -3
  56. package/dist/components/FunPayments/FunPaymentMeshType.d.ts +0 -10
  57. package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +0 -24
@@ -1,40 +1,37 @@
1
1
  "use client";
2
+ import {
3
+ xdefiWallet
4
+ } from "./chunk-RVIZMVFR.js";
2
5
  import {
3
6
  zerionWallet
4
7
  } from "./chunk-DBP432DI.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-BUUV6BS4.js";
8
- import {
9
- uniswapWallet
10
- } from "./chunk-QFRZGNNV.js";
11
- import {
12
- subWallet
13
- } from "./chunk-N3ELQYCY.js";
14
8
  import {
15
9
  tahoWallet
16
10
  } from "./chunk-6AYBA6IH.js";
17
11
  import {
18
- tokenaryWallet
19
- } from "./chunk-FAYEL4JP.js";
12
+ subWallet
13
+ } from "./chunk-N3ELQYCY.js";
20
14
  import {
21
15
  tokenPocketWallet
22
16
  } from "./chunk-ISJYPD3T.js";
17
+ import {
18
+ trustWallet
19
+ } from "./chunk-X45WXZDO.js";
23
20
  import {
24
21
  talismanWallet
25
22
  } from "./chunk-OTXHQMSG.js";
26
23
  import {
27
- trustWallet
28
- } from "./chunk-X45WXZDO.js";
24
+ tokenaryWallet
25
+ } from "./chunk-FAYEL4JP.js";
26
+ import {
27
+ uniswapWallet
28
+ } from "./chunk-QFRZGNNV.js";
29
29
  import {
30
30
  walletConnectWallet
31
31
  } from "./chunk-OFU3PEVT.js";
32
32
  import {
33
- xdefiWallet
34
- } from "./chunk-RVIZMVFR.js";
35
- import {
36
- oneInchWallet
37
- } from "./chunk-I7MKK24W.js";
33
+ zealWallet
34
+ } from "./chunk-BUUV6BS4.js";
38
35
  import {
39
36
  rainbowWallet
40
37
  } from "./chunk-OHJBALD3.js";
@@ -42,26 +39,26 @@ import {
42
39
  ramperWallet
43
40
  } from "./chunk-TKXQYHWJ.js";
44
41
  import {
45
- rabbyWallet
46
- } from "./chunk-H5LLXNOI.js";
47
- import {
48
- safeheronWallet
49
- } from "./chunk-FCIRHRFH.js";
42
+ roninWallet
43
+ } from "./chunk-63YLN6R5.js";
50
44
  import {
51
45
  safeWallet
52
46
  } from "./chunk-Z2QCE6O6.js";
53
47
  import {
54
- roninWallet
55
- } from "./chunk-63YLN6R5.js";
48
+ safeheronWallet
49
+ } from "./chunk-FCIRHRFH.js";
50
+ import {
51
+ coin98Wallet
52
+ } from "./chunk-ZXGMW3OS.js";
56
53
  import {
57
54
  safepalWallet
58
55
  } from "./chunk-AKAT37SI.js";
56
+ import {
57
+ imTokenWallet
58
+ } from "./chunk-BMJOLT2N.js";
59
59
  import {
60
60
  mewWallet
61
61
  } from "./chunk-CVYXTHZ6.js";
62
- import {
63
- frontierWallet
64
- } from "./chunk-LCOUKF2U.js";
65
62
  import {
66
63
  oktoWallet
67
64
  } from "./chunk-MBQTOALG.js";
@@ -72,8 +69,8 @@ import {
72
69
  omniWallet
73
70
  } from "./chunk-II6YBG2B.js";
74
71
  import {
75
- desigWallet
76
- } from "./chunk-44CHUPEQ.js";
72
+ oneInchWallet
73
+ } from "./chunk-I7MKK24W.js";
77
74
  import {
78
75
  oneKeyWallet
79
76
  } from "./chunk-ZP2SV6KN.js";
@@ -81,50 +78,53 @@ import {
81
78
  phantomWallet
82
79
  } from "./chunk-KEVUI6AA.js";
83
80
  import {
84
- imTokenWallet
85
- } from "./chunk-BMJOLT2N.js";
81
+ rabbyWallet
82
+ } from "./chunk-H5LLXNOI.js";
83
+ import {
84
+ frameWallet
85
+ } from "./chunk-KPVNJO3R.js";
86
+ import {
87
+ frontierWallet
88
+ } from "./chunk-LCOUKF2U.js";
86
89
  import {
87
90
  gateWallet
88
91
  } from "./chunk-YIJ5ULO3.js";
89
92
  import {
90
93
  injectedWallet
91
94
  } from "./chunk-E5NYR4SS.js";
92
- import {
93
- bitverseWallet
94
- } from "./chunk-BQEOIDHP.js";
95
95
  import {
96
96
  kresusWallet
97
97
  } from "./chunk-QQJKQCII.js";
98
+ import {
99
+ ledgerWallet
100
+ } from "./chunk-ZMHCZCGS.js";
98
101
  import {
99
102
  metaMaskWallet
100
103
  } from "./chunk-ODRDT73B.js";
101
104
  import {
102
- ledgerWallet
103
- } from "./chunk-ZMHCZCGS.js";
105
+ clvWallet
106
+ } from "./chunk-UHHA5V52.js";
104
107
  import {
105
- coin98Wallet
106
- } from "./chunk-ZXGMW3OS.js";
108
+ bybitWallet
109
+ } from "./chunk-3AZNOY75.js";
107
110
  import {
108
111
  coinbaseWallet
109
112
  } from "./chunk-PNEDRY6O.js";
110
113
  import {
111
- clvWallet
112
- } from "./chunk-UHHA5V52.js";
114
+ coreWallet
115
+ } from "./chunk-MOOW2AOC.js";
113
116
  import {
114
117
  dawnWallet
115
118
  } from "./chunk-KCTWDMQP.js";
116
119
  import {
117
- coreWallet
118
- } from "./chunk-MOOW2AOC.js";
120
+ desigWallet
121
+ } from "./chunk-44CHUPEQ.js";
119
122
  import {
120
123
  enkryptWallet
121
124
  } from "./chunk-JJ4DXD7R.js";
122
125
  import {
123
126
  foxWallet
124
127
  } from "./chunk-WAOREEBE.js";
125
- import {
126
- frameWallet
127
- } from "./chunk-KPVNJO3R.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-ZHFISYEQ.js";
@@ -134,6 +134,9 @@ import {
134
134
  import {
135
135
  bitgetWallet
136
136
  } from "./chunk-IEVZW3XR.js";
137
+ import {
138
+ bitverseWallet
139
+ } from "./chunk-BQEOIDHP.js";
137
140
  import {
138
141
  bitskiWallet
139
142
  } from "./chunk-OCCT5PIN.js";
@@ -141,13 +144,10 @@ import {
141
144
  bloomWallet
142
145
  } from "./chunk-J64P6XK3.js";
143
146
  import "./chunk-RETKWSKD.js";
147
+ import "./chunk-23WIEY36.js";
144
148
  import {
145
149
  braveWallet
146
150
  } from "./chunk-NUEOWEZS.js";
147
- import {
148
- bybitWallet
149
- } from "./chunk-3AZNOY75.js";
150
- import "./chunk-23WIEY36.js";
151
151
  import "./chunk-WRA2DVJ7.js";
152
152
  export {
153
153
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "3.4.4",
3
+ "version": "3.4.5",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -92,8 +92,8 @@
92
92
  "ua-parser-js": "^1.0.37",
93
93
  "uuid": "^9.0.1",
94
94
  "@funkit/api-base": "1.3.1",
95
- "@funkit/core": "2.2.3",
96
- "@funkit/wagmi-tools": "3.0.14"
95
+ "@funkit/wagmi-tools": "3.0.14",
96
+ "@funkit/core": "2.2.3"
97
97
  },
98
98
  "repository": {
99
99
  "type": "git",
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { MeshExchanges } from '../../utils/mesh';
3
- export interface FunPaymentMeshTypeProps {
4
- isParentLoading: boolean;
5
- onConfirmExchange: (exchange: MeshExchanges) => void;
6
- }
7
- /**
8
- * This component handles payments <> mesh integration
9
- */
10
- export declare function FunPaymentMeshType({ isParentLoading, onConfirmExchange, }: FunPaymentMeshTypeProps): React.JSX.Element;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { UnionOmit } from 'viem';
3
- import { PaymentMethod, PaymentMethodAccountInfo, PaymentMethodCardInfo } from '../../domains/paymentMethods';
4
- import { CheckoutModalCommonState, FunCheckoutStep, StateTransitionProps, StepTransition } from './stepTransition';
5
- export interface SelectPaymentMethodState extends CheckoutModalCommonState {
6
- step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
7
- }
8
- export type SelectPaymentMethodNext = {
9
- step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
10
- paymentMethod: PaymentMethod.BROKERAGE | PaymentMethod.TOKEN_TRANSFER;
11
- } | {
12
- step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
13
- paymentMethod: PaymentMethod.CARD;
14
- paymentMethodInfo: PaymentMethodCardInfo;
15
- } | {
16
- step: FunCheckoutStep.SELECT_PAYMENT_METHOD;
17
- paymentMethod: PaymentMethod.ACCOUNT_BALANCE;
18
- paymentMethodInfo: PaymentMethodAccountInfo;
19
- };
20
- export declare function selectPaymentMethodNext(state: SelectPaymentMethodState, payload: SelectPaymentMethodNext): StepTransition[FunCheckoutStep.SELECT_PAYMENT_METHOD];
21
- type Props = StateTransitionProps<SelectPaymentMethodState, SelectPaymentMethodNext>;
22
- export type SelectMethodPayloadData = UnionOmit<SelectPaymentMethodNext, 'step'>;
23
- export declare function SelectPaymentMethod({ onNext, onClose }: Props): React.JSX.Element;
24
- export {};