@funkit/connect 8.2.1-next.2 → 8.3.0

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.
@@ -4,7 +4,6 @@ import type { PaymentMethod } from '../domains/paymentMethods';
4
4
  export interface FunkitTextCustomizationsConfig {
5
5
  virtualFiat: string;
6
6
  brokerageOrExchange: string;
7
- checkoutModalCloseButtonLabel: string;
8
7
  debitOrCredit: string;
9
8
  accountBalance: string;
10
9
  selectAccount: string;
@@ -172,6 +171,12 @@ export interface FunkitUiCustomizationsConfig {
172
171
  }>;
173
172
  };
174
173
  sourceChangeScreen?: {
174
+ bottomBarCloseButton?: {
175
+ /** Whether the bottom bar close button is visible - defaults to false */
176
+ enabled?: boolean;
177
+ /** Translation key for label - defaults to `'common.close'` */
178
+ labelKey?: 'sourceChange.exploreMarketsFirst' | 'common.close';
179
+ };
175
180
  /** Whether to show target asset selection menu if dynamicTargetAssetCandidates exist - defaults to false */
176
181
  showTargetAssetSelection?: boolean;
177
182
  /** Whether to show wallet option when balance is insufficient - defaults to false (hides wallet) */
@@ -205,7 +210,9 @@ export type FunkitUiCustomizationsConfigInternal = Required<FunkitUiCustomizatio
205
210
  transferCryptoScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['transferCryptoScreen']>;
206
211
  selectBrokerageScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['selectBrokerageScreen']>;
207
212
  connectExchangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['connectExchangeScreen']>;
208
- sourceChangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['sourceChangeScreen']>;
213
+ sourceChangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['sourceChangeScreen']> & {
214
+ bottomBarCloseButton: Required<Required<FunkitUiCustomizationsConfig['sourceChangeScreen'] & {}>['bottomBarCloseButton']>;
215
+ };
209
216
  };
210
217
  export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
211
218
  export declare const DEFAULT_UI_CUSTOMIZATIONS: FunkitUiCustomizationsConfigInternal;
@@ -1,17 +1,3 @@
1
- export interface UserIpInfoFromMoonpay {
2
- /** https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
3
- alpha2: 'AU' | 'CA' | 'US' | string;
4
- state: string;
5
- alpha3: string;
6
- country: string;
7
- ipAddress: string;
8
- isAllowed: boolean;
9
- isBuyAllowed: boolean;
10
- isNftAllowed: boolean;
11
- isSellAllowed: boolean;
12
- isBalanceLedgerWithdrawAllowed: boolean;
13
- isLowLimitEnabled: boolean;
14
- }
15
1
  export interface FunkitUserIpInfo {
16
2
  alpha2: string;
17
3
  state: string;
@@ -139,6 +139,7 @@ export declare const useActiveTheme: () => {
139
139
  spinnerIndicatorVerifyAccount: string;
140
140
  txSummaryBoxBackground: string;
141
141
  txSummaryBoxBorder: string;
142
+ counterRingColor: string;
142
143
  };
143
144
  dimensions: {
144
145
  connectExchangeIconSize: string;
@@ -147,6 +148,7 @@ export declare const useActiveTheme: () => {
147
148
  inputAmountQuickOptionButtonHeight: string;
148
149
  inputAmountMinHeight: string;
149
150
  modalBottomBarButtonHeight: string;
151
+ modalBottomBarCloseButtonHeight: string;
150
152
  modalTopBarHeight: string;
151
153
  paymentAmountSkeletonBlockHeight: string;
152
154
  paymentAmountSkeletonBlockWidth: string;
@@ -328,6 +330,10 @@ export declare const useActiveTheme: () => {
328
330
  fontSize: string;
329
331
  lineHeight: string;
330
332
  };
333
+ dropdownItemFontSize: {
334
+ fontSize: string;
335
+ lineHeight: string;
336
+ };
331
337
  };
332
338
  radii: {
333
339
  actionButton: string;
@@ -538,6 +544,7 @@ export declare const useActiveTheme: () => {
538
544
  spinnerIndicatorVerifyAccount: string;
539
545
  txSummaryBoxBackground: string;
540
546
  txSummaryBoxBorder: string;
547
+ counterRingColor: string;
541
548
  };
542
549
  dimensions: {
543
550
  connectExchangeIconSize: string;
@@ -546,6 +553,7 @@ export declare const useActiveTheme: () => {
546
553
  inputAmountQuickOptionButtonHeight: string;
547
554
  inputAmountMinHeight: string;
548
555
  modalBottomBarButtonHeight: string;
556
+ modalBottomBarCloseButtonHeight: string;
549
557
  modalTopBarHeight: string;
550
558
  paymentAmountSkeletonBlockHeight: string;
551
559
  paymentAmountSkeletonBlockWidth: string;
@@ -727,6 +735,10 @@ export declare const useActiveTheme: () => {
727
735
  fontSize: string;
728
736
  lineHeight: string;
729
737
  };
738
+ dropdownItemFontSize: {
739
+ fontSize: string;
740
+ lineHeight: string;
741
+ };
730
742
  };
731
743
  radii: {
732
744
  actionButton: string;
@@ -935,6 +947,7 @@ export declare const useActiveTheme: () => {
935
947
  spinnerIndicatorVerifyAccount: string;
936
948
  txSummaryBoxBackground: string;
937
949
  txSummaryBoxBorder: string;
950
+ counterRingColor: string;
938
951
  };
939
952
  dimensions: {
940
953
  connectExchangeIconSize: string;
@@ -943,6 +956,7 @@ export declare const useActiveTheme: () => {
943
956
  inputAmountQuickOptionButtonHeight: string;
944
957
  inputAmountMinHeight: string;
945
958
  modalBottomBarButtonHeight: string;
959
+ modalBottomBarCloseButtonHeight: string;
946
960
  modalTopBarHeight: string;
947
961
  paymentAmountSkeletonBlockHeight: string;
948
962
  paymentAmountSkeletonBlockWidth: string;
@@ -1124,6 +1138,10 @@ export declare const useActiveTheme: () => {
1124
1138
  fontSize: string;
1125
1139
  lineHeight: string;
1126
1140
  };
1141
+ dropdownItemFontSize: {
1142
+ fontSize: string;
1143
+ lineHeight: string;
1144
+ };
1127
1145
  };
1128
1146
  radii: {
1129
1147
  actionButton: string;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  baseTheme,
4
4
  systemFontStack
5
- } from "../chunk-BP7VOYBS.js";
5
+ } from "../chunk-A24XIU2M.js";
6
6
  export {
7
7
  baseTheme,
8
8
  systemFontStack
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-KKGSXLMH.js";
5
- import "../chunk-BP7VOYBS.js";
4
+ } from "../chunk-GRQP5R23.js";
5
+ import "../chunk-A24XIU2M.js";
6
6
  export {
7
7
  darkTheme
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-MYPFORR2.js";
5
- import "../chunk-BP7VOYBS.js";
4
+ } from "../chunk-CMS4F5PL.js";
5
+ import "../chunk-A24XIU2M.js";
6
6
  export {
7
7
  lightTheme
8
8
  };
@@ -59,7 +59,7 @@ export declare const flagConfig: {
59
59
  readonly if_any: [{
60
60
  readonly key: "apiKey";
61
61
  readonly type: "isAnyOf";
62
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
62
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
63
63
  }];
64
64
  readonly value: string;
65
65
  }, {
@@ -30,20 +30,20 @@ import {
30
30
  xdefiWallet
31
31
  } from "./chunk-TMFH6GXS.js";
32
32
  import {
33
- phantomWallet
34
- } from "./chunk-3IYE623P.js";
33
+ rabbyWallet
34
+ } from "./chunk-LW6S43RE.js";
35
35
  import {
36
36
  rainbowWallet
37
37
  } from "./chunk-77UTBHGP.js";
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-FCG5Q6JX.js";
41
- import {
42
- safeWallet
43
- } from "./chunk-BQQQL6UD.js";
44
41
  import {
45
42
  roninWallet
46
43
  } from "./chunk-UOTQQJJD.js";
44
+ import {
45
+ safeWallet
46
+ } from "./chunk-BQQQL6UD.js";
47
47
  import {
48
48
  safeheronWallet
49
49
  } from "./chunk-QS2XIZEH.js";
@@ -75,8 +75,8 @@ import {
75
75
  oneKeyWallet
76
76
  } from "./chunk-35Q4HKAM.js";
77
77
  import {
78
- rabbyWallet
79
- } from "./chunk-LW6S43RE.js";
78
+ phantomWallet
79
+ } from "./chunk-3IYE623P.js";
80
80
  import {
81
81
  foxWallet
82
82
  } from "./chunk-YLJDPTYF.js";
@@ -125,12 +125,12 @@ import {
125
125
  import {
126
126
  enkryptWallet
127
127
  } from "./chunk-ABQKUIUD.js";
128
- import {
129
- argentWallet
130
- } from "./chunk-WSQ2YJO2.js";
131
128
  import {
132
129
  bifrostWallet
133
130
  } from "./chunk-R6Y36CMA.js";
131
+ import {
132
+ argentWallet
133
+ } from "./chunk-WSQ2YJO2.js";
134
134
  import {
135
135
  bitgetWallet
136
136
  } from "./chunk-FA5DTT5R.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "8.2.1-next.2",
3
+ "version": "8.3.0",
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": "2.1.2-next.2",
106
+ "@funkit/api-base": "2.1.3",
107
107
  "@funkit/chains": "1.1.0",
108
- "@funkit/fun-relay": "2.2.3-next.0",
109
- "@funkit/utils": "1.1.25-next.0"
108
+ "@funkit/fun-relay": "2.4.0",
109
+ "@funkit/utils": "1.2.0"
110
110
  },
111
111
  "repository": {
112
112
  "type": "git",