@funkit/connect 5.5.10 → 5.5.12

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.
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function KatanaBridgeAlert(): React.JSX.Element;
@@ -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";
@@ -255,14 +255,41 @@ export declare const flagConfig: {
255
255
  enable_meld_payment: {
256
256
  type: "boolean";
257
257
  default_value: false;
258
- overrides: {
258
+ overrides: ({
259
+ if_any: {
260
+ key: "userId";
261
+ type: "isAnyOf";
262
+ values: string[];
263
+ }[];
264
+ value: true;
265
+ if_all?: undefined;
266
+ } | {
267
+ if_all: ({
268
+ key: "userId";
269
+ type: "pctRollout";
270
+ pct: number;
271
+ values?: undefined;
272
+ } | {
273
+ key: "apiKey";
274
+ type: "isAnyOf";
275
+ values: string[];
276
+ pct?: undefined;
277
+ })[];
278
+ if_any: {
279
+ key: "userId";
280
+ type: "pctRollout";
281
+ pct: number;
282
+ }[];
283
+ value: true;
284
+ } | {
259
285
  if_any: {
260
286
  key: "userId";
261
287
  type: "pctRollout";
262
288
  pct: number;
263
289
  }[];
264
290
  value: false;
265
- }[];
291
+ if_all?: undefined;
292
+ })[];
266
293
  };
267
294
  meld_quick_options: {
268
295
  type: "string";
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-NO7XMBB5.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-JROWU5BP.js";
3
+ walletConnectWallet
4
+ } from "./chunk-NP5QGWNL.js";
8
5
  import {
9
6
  zerionWallet
10
7
  } from "./chunk-ETTNDQQG.js";
8
+ import {
9
+ xdefiWallet
10
+ } from "./chunk-NO7XMBB5.js";
11
11
  import {
12
12
  tahoWallet
13
13
  } from "./chunk-6P2EMPZI.js";
14
14
  import {
15
- safeheronWallet
16
- } from "./chunk-R6RWZRFF.js";
15
+ talismanWallet
16
+ } from "./chunk-ABFSXBE6.js";
17
17
  import {
18
18
  subWallet
19
19
  } from "./chunk-4UM4GTKZ.js";
@@ -26,24 +26,24 @@ import {
26
26
  import {
27
27
  trustWallet
28
28
  } from "./chunk-IPOC2VJX.js";
29
+ import {
30
+ zealWallet
31
+ } from "./chunk-JROWU5BP.js";
29
32
  import {
30
33
  uniswapWallet
31
34
  } from "./chunk-LH7BMNFZ.js";
32
- import {
33
- walletConnectWallet
34
- } from "./chunk-NP5QGWNL.js";
35
35
  import {
36
36
  phantomWallet
37
37
  } from "./chunk-ZSVTX6EK.js";
38
38
  import {
39
39
  rainbowWallet
40
40
  } from "./chunk-MOOBCMMB.js";
41
- import {
42
- ramperWallet
43
- } from "./chunk-PIUNLQJG.js";
44
41
  import {
45
42
  rabbyWallet
46
43
  } from "./chunk-BVX4XGNP.js";
44
+ import {
45
+ ramperWallet
46
+ } from "./chunk-PIUNLQJG.js";
47
47
  import {
48
48
  roninWallet
49
49
  } from "./chunk-25VW5TZP.js";
@@ -54,8 +54,8 @@ import {
54
54
  safepalWallet
55
55
  } from "./chunk-6LPM6LUQ.js";
56
56
  import {
57
- talismanWallet
58
- } from "./chunk-ABFSXBE6.js";
57
+ safeheronWallet
58
+ } from "./chunk-R6RWZRFF.js";
59
59
  import {
60
60
  ledgerWallet
61
61
  } from "./chunk-BRBKM4PW.js";
@@ -71,9 +71,6 @@ import {
71
71
  import {
72
72
  okxWallet
73
73
  } from "./chunk-3U3BMEH5.js";
74
- import {
75
- omniWallet
76
- } from "./chunk-7CUY5G6R.js";
77
74
  import {
78
75
  oneInchWallet
79
76
  } from "./chunk-OESTDX6I.js";
@@ -81,53 +78,53 @@ import {
81
78
  oneKeyWallet
82
79
  } from "./chunk-4AD7VI2P.js";
83
80
  import {
84
- enkryptWallet
85
- } from "./chunk-SJTXS4ZW.js";
81
+ omniWallet
82
+ } from "./chunk-7CUY5G6R.js";
83
+ import {
84
+ foxWallet
85
+ } from "./chunk-XYBEMO3C.js";
86
86
  import {
87
87
  frontierWallet
88
88
  } from "./chunk-HKV7EMYZ.js";
89
- import {
90
- desigWallet
91
- } from "./chunk-CTU6JCOK.js";
92
- import {
93
- gateWallet
94
- } from "./chunk-3NC26XLM.js";
95
89
  import {
96
90
  imTokenWallet
97
91
  } from "./chunk-COZ7MIQS.js";
98
92
  import {
99
93
  kresusWallet
100
94
  } from "./chunk-MJXPRJZT.js";
95
+ import {
96
+ gateWallet
97
+ } from "./chunk-3NC26XLM.js";
98
+ import {
99
+ enkryptWallet
100
+ } from "./chunk-SJTXS4ZW.js";
101
101
  import {
102
102
  injectedWallet
103
103
  } from "./chunk-VCVVV2K7.js";
104
104
  import {
105
105
  clvWallet
106
106
  } from "./chunk-LEXSM5KI.js";
107
+ import {
108
+ bybitWallet
109
+ } from "./chunk-W5O4YSZN.js";
107
110
  import {
108
111
  coin98Wallet
109
112
  } from "./chunk-KFFJPS5R.js";
110
- import {
111
- braveWallet
112
- } from "./chunk-PB254NQ4.js";
113
113
  import {
114
114
  coreWallet
115
115
  } from "./chunk-JXP2QPW7.js";
116
- import {
117
- dawnWallet
118
- } from "./chunk-LN7OD5EC.js";
119
116
  import {
120
117
  coinbaseWallet
121
118
  } from "./chunk-H4IRCEZN.js";
122
119
  import {
123
- foxWallet
124
- } from "./chunk-XYBEMO3C.js";
120
+ desigWallet
121
+ } from "./chunk-CTU6JCOK.js";
122
+ import {
123
+ dawnWallet
124
+ } from "./chunk-LN7OD5EC.js";
125
125
  import {
126
126
  frameWallet
127
127
  } from "./chunk-ZMYVTWDF.js";
128
- import {
129
- argentWallet
130
- } from "./chunk-WSQ2YJO2.js";
131
128
  import {
132
129
  bifrostWallet
133
130
  } from "./chunk-545L7Y4M.js";
@@ -138,15 +135,18 @@ import {
138
135
  bitgetWallet
139
136
  } from "./chunk-7GSNBOD3.js";
140
137
  import {
141
- bitverseWallet
142
- } from "./chunk-3HZRRP4Y.js";
138
+ braveWallet
139
+ } from "./chunk-PB254NQ4.js";
140
+ import "./chunk-WRA2DVJ7.js";
143
141
  import {
144
142
  bloomWallet
145
143
  } from "./chunk-S27IADFU.js";
146
144
  import {
147
- bybitWallet
148
- } from "./chunk-W5O4YSZN.js";
149
- import "./chunk-WRA2DVJ7.js";
145
+ argentWallet
146
+ } from "./chunk-WSQ2YJO2.js";
147
+ import {
148
+ bitverseWallet
149
+ } from "./chunk-3HZRRP4Y.js";
150
150
  import "./chunk-23WIEY36.js";
151
151
  export {
152
152
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "5.5.10",
3
+ "version": "5.5.12",
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/core": "2.3.26",
93
- "@funkit/wagmi-tools": "3.0.48",
94
92
  "@funkit/utils": "1.1.3",
95
93
  "@funkit/chains": "0.3.1",
96
- "@funkit/fun-relay": "0.1.7"
94
+ "@funkit/core": "2.3.26",
95
+ "@funkit/wagmi-tools": "3.0.48",
96
+ "@funkit/fun-relay": "0.1.8"
97
97
  },
98
98
  "repository": {
99
99
  "type": "git",