@funkit/connect 5.5.1 → 5.5.3

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/MeldQuoteItem/MeldQuoteItem.d.ts +2 -2
  3. package/dist/components/SourceMeldQuoteItem/SourceMeldQuoteItem.d.ts +6 -1
  4. package/dist/domains/asset.d.ts +3 -1
  5. package/dist/hooks/queries/useMeldCurrencies.d.ts +1 -1
  6. package/dist/hooks/usePaymentSources.d.ts +0 -1
  7. package/dist/index.js +199 -105
  8. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +2 -1
  9. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +2 -1
  10. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -1
  11. package/dist/utils/flags/config.d.ts +18 -3
  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 +66 -66
  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 +6 -6
@@ -1,4 +1,4 @@
1
- import type { MeldQuote } from '@funkit/api-base';
1
+ import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
2
2
  import React from 'react';
3
3
  import { type PaymentMethodInfo } from '~/domains/paymentMethods';
4
4
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
@@ -11,6 +11,7 @@ export type InputAmountState = CheckoutModalCommonState & {
11
11
  export type InputAmountNext = Record<string, never> | {
12
12
  fiatAmount: number;
13
13
  fiatCurrency?: string;
14
+ provider?: MeldServiceProvider;
14
15
  nextStep?: FunCheckoutStep.SOURCE_CHANGE | FunCheckoutStep.MELD_CURRENCY_SELECT | FunCheckoutStep.MELD_QUOTES;
15
16
  };
16
17
  export declare const InputAmountInfo: ModalStepInfo<FunCheckoutStep.INPUT_AMOUNT>;
@@ -1,4 +1,4 @@
1
- import type { MeldQuote } from '@funkit/api-base';
1
+ import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
2
2
  import React from 'react';
3
3
  import type { PaymentMethodCardInfo } from '~/domains/paymentMethods';
4
4
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
@@ -7,6 +7,7 @@ export type MeldQuotesState = CheckoutModalCommonState & {
7
7
  /** Checkout amount in fiat */
8
8
  fiatAmount: number;
9
9
  fiatCurrency: string | undefined;
10
+ provider?: MeldServiceProvider;
10
11
  };
11
12
  export type MeldQuotesNext = Record<string, never> | {
12
13
  quote: MeldQuote;
@@ -60,9 +60,13 @@ export declare enum FunCheckoutStep {
60
60
  MELD_QUOTES = "meld_quotes",
61
61
  MELD_CURRENCY_SELECT = "meld_currency_select"
62
62
  }
63
+ interface ModalStepInput<S extends FunCheckoutStep> {
64
+ state: CheckoutModalState<S>;
65
+ apiKey: string;
66
+ }
63
67
  export type ModalStepInfo<S extends FunCheckoutStep> = {
64
68
  Component: ComponentType<ModalStepComponentProps<S>>;
65
- disableBack?: boolean;
69
+ disableBack?: (info: ModalStepInput<S>) => boolean;
66
70
  /** Hides the close button in the Dialog Title element */
67
71
  hideClose?: boolean;
68
72
  onBack?(state: CheckoutModalState<S>, prevState: CheckoutModalState): CheckoutModalState;
@@ -156,6 +156,14 @@ export declare const flagConfig: {
156
156
  checkout_notifications_refresh_interval: {
157
157
  type: "string";
158
158
  default_value: string;
159
+ overrides: {
160
+ if_any: {
161
+ key: "apiKey";
162
+ type: "isAnyOf";
163
+ values: string[];
164
+ }[];
165
+ value: string;
166
+ }[];
159
167
  };
160
168
  token_transfer_new_tokens: {
161
169
  type: "string";
@@ -246,15 +254,22 @@ export declare const flagConfig: {
246
254
  };
247
255
  enable_meld_payment: {
248
256
  type: "boolean";
249
- default_value: true;
250
- overrides: {
257
+ default_value: false;
258
+ overrides: ({
251
259
  if_any: {
252
260
  key: "userId";
253
261
  type: "isAnyOf";
254
262
  values: string[];
255
263
  }[];
264
+ value: true;
265
+ } | {
266
+ if_any: {
267
+ key: "userId";
268
+ type: "pctRollout";
269
+ pct: number;
270
+ }[];
256
271
  value: false;
257
- }[];
272
+ })[];
258
273
  };
259
274
  meld_quick_options: {
260
275
  type: "string";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-W6N74MS3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-545L7Y4M.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-A5APNTGL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-7GSNBOD3.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-6ONTSPEY.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-W5O4YSZN.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-KR6JBW5E.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-LEXSM5KI.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-DTRYS3MO.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-KFFJPS5R.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-HBA36GW3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-JXP2QPW7.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-LMZMXEXL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-XYBEMO3C.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-3S2U24BJ.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-HKV7EMYZ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-GSOYKKIS.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-3NC26XLM.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -1,28 +1,31 @@
1
1
  "use client";
2
+ import {
3
+ zealWallet
4
+ } from "./chunk-JROWU5BP.js";
5
+ import {
6
+ xdefiWallet
7
+ } from "./chunk-NO7XMBB5.js";
2
8
  import {
3
9
  zerionWallet
4
- } from "./chunk-AXWP3GD4.js";
10
+ } from "./chunk-ETTNDQQG.js";
5
11
  import {
6
12
  tahoWallet
7
13
  } from "./chunk-6P2EMPZI.js";
8
- import {
9
- xdefiWallet
10
- } from "./chunk-NO7XMBB5.js";
11
14
  import {
12
15
  subWallet
13
- } from "./chunk-AD2KIJB6.js";
16
+ } from "./chunk-4UM4GTKZ.js";
14
17
  import {
15
18
  talismanWallet
16
19
  } from "./chunk-ABFSXBE6.js";
20
+ import {
21
+ tokenPocketWallet
22
+ } from "./chunk-FRGSRLTS.js";
17
23
  import {
18
24
  tokenaryWallet
19
25
  } from "./chunk-SLOIIJGP.js";
20
- import {
21
- tokenPocketWallet
22
- } from "./chunk-IDKVN5CF.js";
23
26
  import {
24
27
  trustWallet
25
- } from "./chunk-ISIBREBO.js";
28
+ } from "./chunk-IPOC2VJX.js";
26
29
  import {
27
30
  uniswapWallet
28
31
  } from "./chunk-LH7BMNFZ.js";
@@ -30,47 +33,47 @@ import {
30
33
  walletConnectWallet
31
34
  } from "./chunk-NP5QGWNL.js";
32
35
  import {
33
- zealWallet
34
- } from "./chunk-JROWU5BP.js";
35
- import {
36
- rainbowWallet
37
- } from "./chunk-2UCNRD7H.js";
36
+ phantomWallet
37
+ } from "./chunk-ZSVTX6EK.js";
38
38
  import {
39
39
  rabbyWallet
40
40
  } from "./chunk-BVX4XGNP.js";
41
41
  import {
42
- ramperWallet
43
- } from "./chunk-PIUNLQJG.js";
42
+ rainbowWallet
43
+ } from "./chunk-MOOBCMMB.js";
44
44
  import {
45
45
  roninWallet
46
- } from "./chunk-63YLN6R5.js";
46
+ } from "./chunk-25VW5TZP.js";
47
47
  import {
48
- safeWallet
49
- } from "./chunk-BQQQL6UD.js";
48
+ safepalWallet
49
+ } from "./chunk-6LPM6LUQ.js";
50
50
  import {
51
- omniWallet
52
- } from "./chunk-7CUY5G6R.js";
51
+ ramperWallet
52
+ } from "./chunk-PIUNLQJG.js";
53
53
  import {
54
54
  safeheronWallet
55
55
  } from "./chunk-R6RWZRFF.js";
56
56
  import {
57
- safepalWallet
58
- } from "./chunk-MSFKSQBY.js";
57
+ safeWallet
58
+ } from "./chunk-BQQQL6UD.js";
59
59
  import {
60
60
  ledgerWallet
61
61
  } from "./chunk-BRBKM4PW.js";
62
+ import {
63
+ kresusWallet
64
+ } from "./chunk-MJXPRJZT.js";
62
65
  import {
63
66
  mewWallet
64
67
  } from "./chunk-V57WLZEE.js";
65
68
  import {
66
69
  oktoWallet
67
70
  } from "./chunk-ADIXAKUL.js";
68
- import {
69
- metaMaskWallet
70
- } from "./chunk-G73C6P5P.js";
71
71
  import {
72
72
  okxWallet
73
- } from "./chunk-4WEHDI4Y.js";
73
+ } from "./chunk-3U3BMEH5.js";
74
+ import {
75
+ omniWallet
76
+ } from "./chunk-7CUY5G6R.js";
74
77
  import {
75
78
  oneInchWallet
76
79
  } from "./chunk-OESTDX6I.js";
@@ -78,76 +81,73 @@ import {
78
81
  oneKeyWallet
79
82
  } from "./chunk-4AD7VI2P.js";
80
83
  import {
81
- phantomWallet
82
- } from "./chunk-ZSVTX6EK.js";
84
+ frameWallet
85
+ } from "./chunk-ZMYVTWDF.js";
83
86
  import {
84
- bitgetWallet
85
- } from "./chunk-A5APNTGL.js";
87
+ foxWallet
88
+ } from "./chunk-XYBEMO3C.js";
86
89
  import {
87
- frontierWallet
88
- } from "./chunk-3S2U24BJ.js";
90
+ gateWallet
91
+ } from "./chunk-3NC26XLM.js";
89
92
  import {
90
93
  imTokenWallet
91
94
  } from "./chunk-COZ7MIQS.js";
92
95
  import {
93
- gateWallet
94
- } from "./chunk-GSOYKKIS.js";
95
- import {
96
- desigWallet
97
- } from "./chunk-CTU6JCOK.js";
96
+ frontierWallet
97
+ } from "./chunk-HKV7EMYZ.js";
98
98
  import {
99
99
  injectedWallet
100
100
  } from "./chunk-VCVVV2K7.js";
101
101
  import {
102
- enkryptWallet
103
- } from "./chunk-SJTXS4ZW.js";
104
- import {
105
- kresusWallet
106
- } from "./chunk-MJXPRJZT.js";
102
+ metaMaskWallet
103
+ } from "./chunk-N2NIIUW6.js";
107
104
  import {
108
105
  coin98Wallet
109
- } from "./chunk-DTRYS3MO.js";
110
- import {
111
- coinbaseWallet
112
- } from "./chunk-H4IRCEZN.js";
113
- import {
114
- bloomWallet
115
- } from "./chunk-S27IADFU.js";
106
+ } from "./chunk-KFFJPS5R.js";
116
107
  import {
117
- coreWallet
118
- } from "./chunk-HBA36GW3.js";
108
+ bybitWallet
109
+ } from "./chunk-W5O4YSZN.js";
119
110
  import {
120
- foxWallet
121
- } from "./chunk-LMZMXEXL.js";
111
+ clvWallet
112
+ } from "./chunk-LEXSM5KI.js";
122
113
  import {
123
- frameWallet
124
- } from "./chunk-ZMYVTWDF.js";
114
+ desigWallet
115
+ } from "./chunk-CTU6JCOK.js";
125
116
  import {
126
117
  dawnWallet
127
118
  } from "./chunk-LN7OD5EC.js";
119
+ import {
120
+ coreWallet
121
+ } from "./chunk-JXP2QPW7.js";
122
+ import {
123
+ enkryptWallet
124
+ } from "./chunk-SJTXS4ZW.js";
125
+ import {
126
+ coinbaseWallet
127
+ } from "./chunk-H4IRCEZN.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-W6N74MS3.js";
134
- import {
135
- bitverseWallet
136
- } from "./chunk-3HZRRP4Y.js";
133
+ } from "./chunk-545L7Y4M.js";
137
134
  import {
138
135
  bitskiWallet
139
136
  } from "./chunk-P74YPRF6.js";
137
+ import {
138
+ bitgetWallet
139
+ } from "./chunk-7GSNBOD3.js";
140
+ import {
141
+ bloomWallet
142
+ } from "./chunk-S27IADFU.js";
140
143
  import {
141
144
  braveWallet
142
145
  } from "./chunk-PB254NQ4.js";
146
+ import "./chunk-WRA2DVJ7.js";
143
147
  import {
144
- bybitWallet
145
- } from "./chunk-6ONTSPEY.js";
146
- import {
147
- clvWallet
148
- } from "./chunk-KR6JBW5E.js";
148
+ bitverseWallet
149
+ } from "./chunk-3HZRRP4Y.js";
149
150
  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-G73C6P5P.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-N2NIIUW6.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-4WEHDI4Y.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-3U3BMEH5.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-2UCNRD7H.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-MOOBCMMB.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-63YLN6R5.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-25VW5TZP.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-MSFKSQBY.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-6LPM6LUQ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-AD2KIJB6.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-4UM4GTKZ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-IDKVN5CF.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-FRGSRLTS.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-ISIBREBO.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-IPOC2VJX.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-AXWP3GD4.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-ETTNDQQG.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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.1",
3
+ "version": "5.5.3",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -92,12 +92,12 @@
92
92
  "ua-parser-js": "^1.0.37",
93
93
  "use-debounce": "^10.0.5",
94
94
  "uuid": "^9.0.1",
95
- "@funkit/api-base": "1.9.1",
96
- "@funkit/core": "2.3.23",
97
- "@funkit/fun-relay": "0.1.6",
98
- "@funkit/utils": "1.1.1",
95
+ "@funkit/api-base": "1.9.2",
99
96
  "@funkit/chains": "0.3.1",
100
- "@funkit/wagmi-tools": "3.0.45"
97
+ "@funkit/core": "2.3.24",
98
+ "@funkit/utils": "1.1.2",
99
+ "@funkit/wagmi-tools": "3.0.46",
100
+ "@funkit/fun-relay": "0.1.7"
101
101
  },
102
102
  "repository": {
103
103
  "type": "git",