@funkit/connect 6.15.4 → 6.15.6

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.
@@ -1,2 +1,2 @@
1
- export type Locale = 'en' | 'zh' | 'ko' | 'ja' | 'tr' | 'es' | 'ru';
1
+ export type Locale = 'en' | 'zh' | 'ko' | 'ja' | 'tr' | 'es' | 'ru' | 'buy_en';
2
2
  export { default as i18n, localeMapping } from './i18n';
@@ -20,10 +20,7 @@ declare enum BrokerageTwoFAStatus {
20
20
  addressWhitelistRequired = "addressWhitelistRequired",
21
21
  secondMfaRequired = "secondMfaRequired"
22
22
  }
23
- type MeshExchangeType = {
24
- icon: () => JSX.Element | null;
25
- name: string;
26
- };
23
+ import type { BluvoExchangeInfo } from '~/consts/bluvo';
27
24
  import type { PaymentMethodBrokerageInfo } from '~/domains/paymentMethods';
28
25
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
29
26
  export type BrokerageTwoFAState = CheckoutModalCommonState & {
@@ -33,7 +30,7 @@ export type BrokerageTwoFANext = {
33
30
  depositAddress: Address;
34
31
  } | {
35
32
  depositAddress: null;
36
- brokerType: MeshExchangeType;
33
+ brokerType: BluvoExchangeInfo;
37
34
  };
38
35
  export interface BrokerageTwoFAExecuteTransferResponse {
39
36
  status: BrokerageTwoFAStatus;
@@ -0,0 +1,2 @@
1
+ export declare const WITH_EMPTY_STATE_DATA_ATTRIBUTE = "data-with-empty-state";
2
+ export declare const emptyStateStyles: string;
@@ -1,6 +1,6 @@
1
1
  import { type UseBluvoFlowHook } from '@bluvo/react';
2
2
  import React, { type ReactNode } from 'react';
3
- import type { BluvoBrokerageMinMax, BluvoExchangeType } from '~/consts/bluvo';
3
+ import { type BluvoBrokerageMinMax, type BluvoExchangeType } from '~/consts/bluvo';
4
4
  import type { BrokerageAssetHoldingsItem } from '~/domains/wallet';
5
5
  type BluvoLocalStorageData = Partial<Record<BluvoExchangeType, string>>;
6
6
  interface FunkitBrokerageContextProps {
@@ -1,5 +1,6 @@
1
+ import type { TFunction } from 'i18next';
1
2
  import type { FunkitTextCustomizationsConfig } from '../providers/FunkitConfigContext';
2
- export declare const getWalletLabel: (textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
3
+ export declare const getWalletLabel: (t: TFunction, textCustomizations: FunkitTextCustomizationsConfig, walletAddress?: string) => string;
3
4
  export declare function isAddressSupported(address: string): boolean;
4
5
  /**
5
6
  * Check if the recipient address is compatible with selected chain
@@ -18,7 +18,7 @@ export declare function getBrokerageMinMax(asset: BrokerageAssetHoldingsItem & {
18
18
  }, minTransferLimits: {
19
19
  mainnet: number;
20
20
  nonMainnet: number;
21
- }): {
21
+ }, minDeposit?: number): {
22
22
  minUsd: number;
23
23
  maxUsd: number;
24
24
  };
@@ -49,7 +49,7 @@ export declare const flagConfig: {
49
49
  readonly if_any: [{
50
50
  readonly key: "apiKey";
51
51
  readonly type: "isAnyOf";
52
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3"];
52
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
53
53
  }];
54
54
  readonly value: true;
55
55
  }];
@@ -76,6 +76,14 @@ export declare const flagConfig: {
76
76
  readonly token_transfer_source_chains_and_assets: {
77
77
  readonly type: "string";
78
78
  readonly default_value: string;
79
+ readonly overrides: [{
80
+ readonly if_any: [{
81
+ readonly key: "apiKey";
82
+ readonly type: "isAnyOf";
83
+ readonly values: ["M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
84
+ }];
85
+ readonly value: string;
86
+ }];
79
87
  };
80
88
  readonly withdrawal_chains_and_assets: {
81
89
  readonly type: "string";
@@ -99,15 +107,7 @@ export declare const flagConfig: {
99
107
  };
100
108
  readonly checkout_time_estimate_overrides: {
101
109
  readonly type: "string";
102
- readonly default_value: "";
103
- readonly overrides: [{
104
- readonly if_any: [{
105
- readonly key: "apiKey";
106
- readonly type: "isAnyOf";
107
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
108
- }];
109
- readonly value: string;
110
- }];
110
+ readonly default_value: string;
111
111
  };
112
112
  readonly token_transfer_default_chain_id: {
113
113
  readonly type: "string";
@@ -116,7 +116,7 @@ export declare const flagConfig: {
116
116
  readonly if_any: [{
117
117
  readonly key: "apiKey";
118
118
  readonly type: "isAnyOf";
119
- readonly values: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"];
119
+ readonly values: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
120
120
  }];
121
121
  readonly value: string;
122
122
  }, {
@@ -215,13 +215,13 @@ export declare const flagConfig: {
215
215
  readonly value: true;
216
216
  }, Override<boolean>, {
217
217
  readonly if_all: [{
218
- readonly pct: 30;
218
+ readonly pct: 50;
219
219
  readonly type: "pctRollout";
220
220
  readonly key: "userId";
221
221
  }, {
222
222
  readonly key: "apiKey";
223
223
  readonly type: "isAnyOf";
224
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
224
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc"];
225
225
  }];
226
226
  readonly if_any: [{
227
227
  readonly pct: 2;
@@ -56,15 +56,15 @@ import {
56
56
  import {
57
57
  safepalWallet
58
58
  } from "./chunk-NT2HYJKW.js";
59
- import {
60
- metaMaskWallet
61
- } from "./chunk-2HYNUNAS.js";
62
59
  import {
63
60
  ledgerWallet
64
61
  } from "./chunk-BRBKM4PW.js";
65
62
  import {
66
63
  mewWallet
67
64
  } from "./chunk-OL5ZO7E4.js";
65
+ import {
66
+ metaMaskWallet
67
+ } from "./chunk-2HYNUNAS.js";
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-ADIXAKUL.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.15.4",
3
+ "version": "6.15.6",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -101,12 +101,12 @@
101
101
  "ua-parser-js": "^1.0.37",
102
102
  "use-debounce": "^10.0.5",
103
103
  "uuid": "^9.0.1",
104
- "@funkit/api-base": "1.12.17",
105
- "@funkit/chains": "0.4.6",
106
- "@funkit/core": "2.3.62",
104
+ "@funkit/api-base": "1.12.18",
105
+ "@funkit/chains": "0.4.7",
106
+ "@funkit/core": "2.3.64",
107
107
  "@funkit/fun-relay": "2.1.13",
108
- "@funkit/utils": "1.1.18",
109
- "@funkit/wagmi-tools": "3.0.85"
108
+ "@funkit/utils": "1.1.19",
109
+ "@funkit/wagmi-tools": "3.0.87"
110
110
  },
111
111
  "repository": {
112
112
  "type": "git",