@funkit/connect 5.5.9 → 5.5.11

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 (31) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/components/FunPayments/FunPaymentMethods.d.ts +3 -2
  3. package/dist/components/SourceMeldQuoteItem/SourceMeldQuoteItem.d.ts +3 -1
  4. package/dist/hooks/queries/useMeldLimits.d.ts +1 -1
  5. package/dist/index.js +309 -238
  6. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  7. package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +1 -1
  8. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +4 -4
  9. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  10. package/dist/modals/CheckoutModal/MeldQuotes/useMeldQuotes.d.ts +15 -4
  11. package/dist/utils/consts.d.ts +2 -0
  12. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  17. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/index.js +56 -56
  22. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  31. package/package.json +3 -3
@@ -9,7 +9,7 @@ export type InputAmountState = CheckoutModalCommonState & {
9
9
  quote?: MeldQuote;
10
10
  };
11
11
  export type InputAmountNext = Record<string, never> | {
12
- fiatAmount: number;
12
+ fiatAmount: number | undefined;
13
13
  fiatCurrency?: string;
14
14
  provider?: MeldServiceProvider;
15
15
  nextStep?: FunCheckoutStep.SOURCE_CHANGE | FunCheckoutStep.MELD_CURRENCY_SELECT | FunCheckoutStep.MELD_QUOTES;
@@ -7,6 +7,6 @@ interface QuickOptionsProps {
7
7
  options?: number[];
8
8
  percentMode?: boolean;
9
9
  }
10
- export declare function useFiatAmountOptions(currency: string): number[];
10
+ export declare function useFiatAmountOptions(currency: string | undefined): number[];
11
11
  export declare const QuickOptions: ({ currency, disabled, onSelect, options, percentMode, }: QuickOptionsProps) => React.JSX.Element[] | undefined;
12
12
  export {};
@@ -20,10 +20,10 @@ export interface AmountInputInitOptions {
20
20
  quickOptions?: number[];
21
21
  }
22
22
  export interface AmountInputState {
23
- /** Current amount, in target asset */
24
- assetAmount: number;
25
- /** Current amount, in fiat */
26
- fiatAmount: number;
23
+ /** Current amount, in target asset. Undefined if input is empty */
24
+ assetAmount: number | undefined;
25
+ /** Current amount, in fiat. Undefined if input is empty */
26
+ fiatAmount: number | undefined;
27
27
  /** Fiat currency */
28
28
  fiatCurrency: string;
29
29
  /** Current input value (with leading currency symbol if in fiat) */
@@ -5,7 +5,7 @@ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponent
5
5
  export type MeldQuotesState = CheckoutModalCommonState & {
6
6
  paymentMethodInfo: PaymentMethodCardInfo;
7
7
  /** Checkout amount in fiat */
8
- fiatAmount: number;
8
+ fiatAmount: number | undefined;
9
9
  fiatCurrency: string | undefined;
10
10
  provider?: MeldServiceProvider;
11
11
  };
@@ -1,5 +1,16 @@
1
- /** Triggered only when fiatCurrency is provided */
2
- export declare const useMeldQuotes: (sourceAmount: number, fiatCurrency: string | undefined) => {
3
- query: import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldQuote[], Error>;
4
- countdown: import("react").ReactNode;
1
+ import { type MeldQuote } from '@funkit/api-base';
2
+ import { type UseQueryResult } from '@tanstack/react-query';
3
+ import type { ReactNode } from 'react';
4
+ /**
5
+ * Triggered only when fiatCurrency is provided.
6
+ *
7
+ * - The source amount is debounced.
8
+ * - Query errors are discarded while the input amount is not equal to its debounced value.
9
+ * - In that case, `isOutdated` is also set to `true`.
10
+ */
11
+ export declare const useMeldQuotes: (sourceAmount: number | undefined, fiatCurrency: string | undefined) => {
12
+ countdown: ReactNode;
13
+ query: UseQueryResult<MeldQuote[]> & {
14
+ isOutdated: boolean;
15
+ };
5
16
  };
@@ -1,4 +1,6 @@
1
1
  export declare const MIN_CHECKOUT_AMOUNT_USD = 1;
2
+ export declare const MIN_MOONPAY_AMOUNT_USD = 35;
3
+ export declare const MAX_MOONPAY_AMOUNT_USD = 10000;
2
4
  export declare const LOW_BALANCE = "Low Balance";
3
5
  export declare const CONTACT_US_LINK = "https://intercom.help/funxyz/en/articles/10732578-contact-us";
4
6
  export declare const DEFAULT_CHECKOUT_HISTORY_DETAIL_TITLE = "Your Purchase";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-545L7Y4M.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-W6N74MS3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-7GSNBOD3.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-A5APNTGL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-W5O4YSZN.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-6ONTSPEY.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-LEXSM5KI.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-KR6JBW5E.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-KFFJPS5R.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-DTRYS3MO.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-JXP2QPW7.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-HBA36GW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-XYBEMO3C.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-LMZMXEXL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-HKV7EMYZ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-3S2U24BJ.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-3NC26XLM.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-GSOYKKIS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -7,118 +7,118 @@ import {
7
7
  } from "./chunk-JROWU5BP.js";
8
8
  import {
9
9
  zerionWallet
10
- } from "./chunk-ETTNDQQG.js";
10
+ } from "./chunk-AXWP3GD4.js";
11
+ import {
12
+ subWallet
13
+ } from "./chunk-AD2KIJB6.js";
11
14
  import {
12
15
  tahoWallet
13
16
  } from "./chunk-6P2EMPZI.js";
14
17
  import {
15
18
  talismanWallet
16
19
  } from "./chunk-ABFSXBE6.js";
17
- import {
18
- safeheronWallet
19
- } from "./chunk-R6RWZRFF.js";
20
20
  import {
21
21
  tokenPocketWallet
22
- } from "./chunk-FRGSRLTS.js";
22
+ } from "./chunk-IDKVN5CF.js";
23
23
  import {
24
- trustWallet
25
- } from "./chunk-IPOC2VJX.js";
24
+ tokenaryWallet
25
+ } from "./chunk-SLOIIJGP.js";
26
26
  import {
27
27
  uniswapWallet
28
28
  } from "./chunk-LH7BMNFZ.js";
29
+ import {
30
+ trustWallet
31
+ } from "./chunk-ISIBREBO.js";
29
32
  import {
30
33
  walletConnectWallet
31
34
  } from "./chunk-NP5QGWNL.js";
32
- import {
33
- tokenaryWallet
34
- } from "./chunk-SLOIIJGP.js";
35
- import {
36
- omniWallet
37
- } from "./chunk-7CUY5G6R.js";
38
35
  import {
39
36
  rabbyWallet
40
37
  } from "./chunk-BVX4XGNP.js";
38
+ import {
39
+ ramperWallet
40
+ } from "./chunk-PIUNLQJG.js";
41
41
  import {
42
42
  rainbowWallet
43
- } from "./chunk-MOOBCMMB.js";
43
+ } from "./chunk-2UCNRD7H.js";
44
44
  import {
45
- roninWallet
46
- } from "./chunk-25VW5TZP.js";
45
+ phantomWallet
46
+ } from "./chunk-ZSVTX6EK.js";
47
47
  import {
48
- ramperWallet
49
- } from "./chunk-PIUNLQJG.js";
48
+ roninWallet
49
+ } from "./chunk-63YLN6R5.js";
50
50
  import {
51
51
  safeWallet
52
52
  } from "./chunk-BQQQL6UD.js";
53
+ import {
54
+ safeheronWallet
55
+ } from "./chunk-R6RWZRFF.js";
53
56
  import {
54
57
  safepalWallet
55
- } from "./chunk-6LPM6LUQ.js";
58
+ } from "./chunk-MSFKSQBY.js";
56
59
  import {
57
- subWallet
58
- } from "./chunk-4UM4GTKZ.js";
60
+ kresusWallet
61
+ } from "./chunk-MJXPRJZT.js";
59
62
  import {
60
- ledgerWallet
61
- } from "./chunk-BRBKM4PW.js";
63
+ metaMaskWallet
64
+ } from "./chunk-G73C6P5P.js";
62
65
  import {
63
66
  mewWallet
64
67
  } from "./chunk-V57WLZEE.js";
65
- import {
66
- metaMaskWallet
67
- } from "./chunk-N2NIIUW6.js";
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-ADIXAKUL.js";
71
71
  import {
72
72
  okxWallet
73
- } from "./chunk-3U3BMEH5.js";
73
+ } from "./chunk-4WEHDI4Y.js";
74
74
  import {
75
- oneInchWallet
76
- } from "./chunk-OESTDX6I.js";
75
+ omniWallet
76
+ } from "./chunk-7CUY5G6R.js";
77
77
  import {
78
78
  oneKeyWallet
79
79
  } from "./chunk-4AD7VI2P.js";
80
80
  import {
81
- phantomWallet
82
- } from "./chunk-ZSVTX6EK.js";
81
+ oneInchWallet
82
+ } from "./chunk-OESTDX6I.js";
83
83
  import {
84
84
  foxWallet
85
- } from "./chunk-XYBEMO3C.js";
85
+ } from "./chunk-LMZMXEXL.js";
86
86
  import {
87
87
  frameWallet
88
88
  } from "./chunk-ZMYVTWDF.js";
89
89
  import {
90
90
  frontierWallet
91
- } from "./chunk-HKV7EMYZ.js";
91
+ } from "./chunk-3S2U24BJ.js";
92
92
  import {
93
93
  gateWallet
94
- } from "./chunk-3NC26XLM.js";
95
- import {
96
- injectedWallet
97
- } from "./chunk-VCVVV2K7.js";
94
+ } from "./chunk-GSOYKKIS.js";
98
95
  import {
99
96
  imTokenWallet
100
97
  } from "./chunk-COZ7MIQS.js";
101
98
  import {
102
- kresusWallet
103
- } from "./chunk-MJXPRJZT.js";
99
+ injectedWallet
100
+ } from "./chunk-VCVVV2K7.js";
104
101
  import {
105
- bybitWallet
106
- } from "./chunk-W5O4YSZN.js";
102
+ ledgerWallet
103
+ } from "./chunk-BRBKM4PW.js";
107
104
  import {
108
105
  clvWallet
109
- } from "./chunk-LEXSM5KI.js";
106
+ } from "./chunk-KR6JBW5E.js";
110
107
  import {
111
- coinbaseWallet
112
- } from "./chunk-H4IRCEZN.js";
108
+ bitgetWallet
109
+ } from "./chunk-A5APNTGL.js";
113
110
  import {
114
111
  coin98Wallet
115
- } from "./chunk-KFFJPS5R.js";
112
+ } from "./chunk-DTRYS3MO.js";
113
+ import {
114
+ coreWallet
115
+ } from "./chunk-HBA36GW3.js";
116
+ import {
117
+ coinbaseWallet
118
+ } from "./chunk-H4IRCEZN.js";
116
119
  import {
117
120
  dawnWallet
118
121
  } from "./chunk-LN7OD5EC.js";
119
- import {
120
- coreWallet
121
- } from "./chunk-JXP2QPW7.js";
122
122
  import {
123
123
  enkryptWallet
124
124
  } from "./chunk-SJTXS4ZW.js";
@@ -128,26 +128,26 @@ import {
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
- import {
132
- bifrostWallet
133
- } from "./chunk-545L7Y4M.js";
134
131
  import {
135
132
  bitskiWallet
136
133
  } from "./chunk-P74YPRF6.js";
137
134
  import {
138
- bitgetWallet
139
- } from "./chunk-7GSNBOD3.js";
135
+ bifrostWallet
136
+ } from "./chunk-W6N74MS3.js";
140
137
  import {
141
138
  bitverseWallet
142
139
  } from "./chunk-3HZRRP4Y.js";
140
+ import {
141
+ bloomWallet
142
+ } from "./chunk-S27IADFU.js";
143
143
  import {
144
144
  braveWallet
145
145
  } from "./chunk-PB254NQ4.js";
146
- import "./chunk-WRA2DVJ7.js";
147
146
  import {
148
- bloomWallet
149
- } from "./chunk-S27IADFU.js";
147
+ bybitWallet
148
+ } from "./chunk-6ONTSPEY.js";
150
149
  import "./chunk-23WIEY36.js";
150
+ import "./chunk-WRA2DVJ7.js";
151
151
  export {
152
152
  argentWallet,
153
153
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-N2NIIUW6.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-G73C6P5P.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-3U3BMEH5.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-4WEHDI4Y.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-MOOBCMMB.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-2UCNRD7H.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-25VW5TZP.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-63YLN6R5.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-6LPM6LUQ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-MSFKSQBY.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-4UM4GTKZ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-AD2KIJB6.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-FRGSRLTS.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-IDKVN5CF.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-IPOC2VJX.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-ISIBREBO.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-ETTNDQQG.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-AXWP3GD4.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "5.5.9",
3
+ "version": "5.5.11",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -89,11 +89,11 @@
89
89
  "use-debounce": "^10.0.5",
90
90
  "uuid": "^9.0.1",
91
91
  "@funkit/api-base": "1.9.4",
92
+ "@funkit/chains": "0.3.1",
92
93
  "@funkit/utils": "1.1.3",
93
94
  "@funkit/wagmi-tools": "3.0.48",
94
95
  "@funkit/core": "2.3.26",
95
- "@funkit/chains": "0.3.1",
96
- "@funkit/fun-relay": "0.1.7"
96
+ "@funkit/fun-relay": "0.1.8"
97
97
  },
98
98
  "repository": {
99
99
  "type": "git",