@funkit/connect 6.15.1 → 6.15.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.
@@ -1,2 +1,2 @@
1
1
  import type { Address } from 'viem';
2
- export declare function useAccountBalancePostCheckout(setPostCheckoutStepMessage: (s: string) => void, apiKey: string): (depositAddress: Address) => Promise<void>;
2
+ export declare function useAccountBalancePostCheckout(setPostCheckoutStepMessage: (s: string) => void): (depositAddress: Address) => Promise<void>;
@@ -23,7 +23,7 @@ interface FunkitCheckoutContextInterface {
23
23
  }): void;
24
24
  updateSelectedPaymentMethodInfo(newPaymentMethodInfo: PaymentMethodInfo): void;
25
25
  updateCustomRecipient: (recipient: Address) => void;
26
- confirmCheckout(shouldBatchOpBypassInit: boolean, quote: FunkitCheckoutQuoteResult, stepMessageSetter: (m: string) => void, withdrawalClient?: WithdrawalClient): Promise<Address>;
26
+ confirmCheckout(quote: FunkitCheckoutQuoteResult, stepMessageSetter: (m: string) => void, withdrawalClient?: WithdrawalClient): Promise<Address>;
27
27
  cancelCheckout(depositAddress: Address): Promise<boolean>;
28
28
  /** @deprecated to be removed after quote migration is finished (historically named setCheckoutQuote) */
29
29
  setCheckout: (checkout: FunkitActiveCheckoutItem) => void;
@@ -238,6 +238,10 @@ export declare const useActiveTheme: () => {
238
238
  buttonFocusedShadowTertiary: string;
239
239
  buttonHoverShadowTertiary: string;
240
240
  buttonDisabledShadow: string;
241
+ buttonInnerShadow: string;
242
+ buttonFocusedInnerShadow: string;
243
+ buttonHoverInnerShadow: string;
244
+ buttonDisabledInnerShadow: string;
241
245
  selectedDropdownItem: string;
242
246
  };
243
247
  spacing: {
@@ -472,6 +476,10 @@ export declare const useActiveTheme: () => {
472
476
  buttonFocusedShadowTertiary: string;
473
477
  buttonHoverShadowTertiary: string;
474
478
  buttonDisabledShadow: string;
479
+ buttonInnerShadow: string;
480
+ buttonFocusedInnerShadow: string;
481
+ buttonHoverInnerShadow: string;
482
+ buttonDisabledInnerShadow: string;
475
483
  selectedDropdownItem: string;
476
484
  };
477
485
  spacing: {
@@ -704,6 +712,10 @@ export declare const useActiveTheme: () => {
704
712
  buttonFocusedShadowTertiary: string;
705
713
  buttonHoverShadowTertiary: string;
706
714
  buttonDisabledShadow: string;
715
+ buttonInnerShadow: string;
716
+ buttonFocusedInnerShadow: string;
717
+ buttonHoverInnerShadow: string;
718
+ buttonDisabledInnerShadow: string;
707
719
  selectedDropdownItem: string;
708
720
  };
709
721
  spacing: {
@@ -1,9 +1,7 @@
1
1
  import type { AssetBalanceInfo } from '@funkit/api-base';
2
- import type { Auth, FunWallet } from '@funkit/core';
3
2
  import React, { type ReactNode } from 'react';
4
3
  import type { Address } from 'viem';
5
- import { type Config, type UseDisconnectReturnType, type UseReconnectReturnType } from 'wagmi';
6
- import type { SwitchChainVariables } from 'wagmi/query';
4
+ import { type UseDisconnectReturnType, type UseReconnectReturnType } from 'wagmi';
7
5
  import { type FunkitUserInfo } from '../consts/funkit';
8
6
  /** AssetBalanceInfo with known price and totalUsdValue */
9
7
  export interface KnownAssetBalanceInfo extends AssetBalanceInfo {
@@ -20,8 +18,6 @@ export interface GeneralWalletContextProps {
20
18
  isUserLoggedIn: boolean;
21
19
  loginType: LoginType;
22
20
  userInfo: FunkitUserInfo;
23
- funWallet: FunWallet | null;
24
- funWalletAuth: Auth | null;
25
21
  handleLogout: () => void;
26
22
  logoutSymbol: symbol | undefined;
27
23
  }
@@ -104,7 +100,7 @@ export declare const useFunkitReconnect: () => UseReconnectReturnType;
104
100
  export declare const useFunkitSwitchChains: ({ onSettled, }: {
105
101
  onSettled?: () => void;
106
102
  }) => {
107
- switchChain: (params: SwitchChainVariables<Config, number>) => void;
108
- switchChainAsync: (params: SwitchChainVariables<Config, number>) => Promise<void>;
103
+ switchChain: import("wagmi/query").SwitchChainMutate<import("wagmi").Config, void>;
104
+ switchChainAsync: import("wagmi/query").SwitchChainMutateAsync<import("wagmi").Config, void>;
109
105
  pendingChainId: number | null;
110
106
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-3SMGLDNF.js";
4
+ } from "../chunk-KG5Q63KL.js";
5
5
  import "../chunk-WCUXJAGT.js";
6
6
  export {
7
7
  darkTheme
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-XH2UUILF.js";
4
+ } from "../chunk-L3BEU75V.js";
5
5
  import "../chunk-WCUXJAGT.js";
6
6
  export {
7
7
  lightTheme
@@ -5,7 +5,7 @@ import { type Address, type Hex } from 'viem';
5
5
  import type { UseConfigReturnType } from 'wagmi';
6
6
  import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
7
7
  import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
8
- import { type FunkitCheckoutActionParams, type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
8
+ import { type FunkitActiveCheckoutItem, type FunkitCheckoutActionParams, type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
9
9
  export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
10
10
  export declare const BROKERAGE_TIME_ESTIMATE_MS = 0;
11
11
  export declare const BANK_TIME_ESTIMATE_MS = 0;
@@ -162,4 +162,5 @@ export declare function computeDisplayDestinationToken(checkoutConfig: FunkitChe
162
162
  stakingTokenSymbol: string;
163
163
  stakingTokenIcon: string;
164
164
  };
165
+ export declare function isLayerZeroOftCheckout(apiKey: string, checkoutItem: FunkitActiveCheckoutItem | null): boolean;
165
166
  export {};
@@ -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", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz"];
52
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3"];
53
53
  }];
54
54
  readonly value: true;
55
55
  }];
@@ -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: 10;
218
+ readonly pct: 30;
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"];
224
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
225
225
  }];
226
226
  readonly if_any: [{
227
227
  readonly pct: 2;
@@ -11,12 +11,12 @@ import {
11
11
  import {
12
12
  subWallet
13
13
  } from "./chunk-JWFF4AAL.js";
14
- import {
15
- talismanWallet
16
- } from "./chunk-DRO6WYMM.js";
17
14
  import {
18
15
  tahoWallet
19
16
  } from "./chunk-ZZZRUXZE.js";
17
+ import {
18
+ talismanWallet
19
+ } from "./chunk-DRO6WYMM.js";
20
20
  import {
21
21
  tokenPocketWallet
22
22
  } from "./chunk-2L43XSW3.js";
@@ -68,12 +68,12 @@ import {
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-ADIXAKUL.js";
71
- import {
72
- omniWallet
73
- } from "./chunk-7CUY5G6R.js";
74
71
  import {
75
72
  okxWallet
76
73
  } from "./chunk-TDIEHTMB.js";
74
+ import {
75
+ omniWallet
76
+ } from "./chunk-7CUY5G6R.js";
77
77
  import {
78
78
  oneInchWallet
79
79
  } from "./chunk-OESTDX6I.js";
@@ -95,12 +95,12 @@ import {
95
95
  import {
96
96
  imTokenWallet
97
97
  } from "./chunk-COZ7MIQS.js";
98
- import {
99
- kresusWallet
100
- } from "./chunk-MJXPRJZT.js";
101
98
  import {
102
99
  injectedWallet
103
100
  } from "./chunk-XWUJE7MW.js";
101
+ import {
102
+ kresusWallet
103
+ } from "./chunk-MJXPRJZT.js";
104
104
  import {
105
105
  bybitWallet
106
106
  } from "./chunk-2STUC6QL.js";
@@ -128,6 +128,9 @@ import {
128
128
  import {
129
129
  bifrostWallet
130
130
  } from "./chunk-A5N6B5UW.js";
131
+ import {
132
+ argentWallet
133
+ } from "./chunk-WSQ2YJO2.js";
131
134
  import {
132
135
  bitgetWallet
133
136
  } from "./chunk-TDAVGY5F.js";
@@ -137,9 +140,6 @@ import {
137
140
  import {
138
141
  bitverseWallet
139
142
  } from "./chunk-3HZRRP4Y.js";
140
- import {
141
- argentWallet
142
- } from "./chunk-WSQ2YJO2.js";
143
143
  import {
144
144
  bloomWallet
145
145
  } from "./chunk-S27IADFU.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.15.1",
3
+ "version": "6.15.3",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -78,8 +78,8 @@
78
78
  "vitest": "^3.0.9"
79
79
  },
80
80
  "dependencies": {
81
- "@bluvo/react": "2.1.0",
82
- "@bluvo/sdk-ts": "2.1.0",
81
+ "@bluvo/react": "2.1.3",
82
+ "@bluvo/sdk-ts": "2.1.3",
83
83
  "@datadog/browser-logs": "5.22.0",
84
84
  "@number-flow/react": "^0.5.5",
85
85
  "@privy-io/js-sdk-core": "^0.21.0",
@@ -98,12 +98,12 @@
98
98
  "ua-parser-js": "^1.0.37",
99
99
  "use-debounce": "^10.0.5",
100
100
  "uuid": "^9.0.1",
101
- "@funkit/api-base": "1.12.15",
102
- "@funkit/chains": "0.4.4",
103
- "@funkit/core": "2.3.60",
104
- "@funkit/fun-relay": "2.1.10",
101
+ "@funkit/api-base": "1.12.16",
102
+ "@funkit/chains": "0.4.5",
103
+ "@funkit/core": "2.3.61",
104
+ "@funkit/fun-relay": "2.1.12",
105
105
  "@funkit/utils": "1.1.17",
106
- "@funkit/wagmi-tools": "3.0.83"
106
+ "@funkit/wagmi-tools": "3.0.84"
107
107
  },
108
108
  "repository": {
109
109
  "type": "git",
@@ -1,32 +0,0 @@
1
- export declare function useCheckoutAccountBalanceTransfer(): {
2
- generateCheckoutTransferOpItems: (toAddress: string, tokenAmount: number | string) => Promise<{
3
- rFunWallet: import("@funkit/core").FunWallet;
4
- rFunWalletAuth: import("@funkit/core").Auth;
5
- transferOp: import("@funkit/core").Operation;
6
- envConfig: {
7
- chain: string;
8
- gasSponsor: {
9
- useCheckoutSponsor: boolean;
10
- sponsorAddress: any;
11
- token?: string;
12
- usePermit?: boolean;
13
- };
14
- bypassInit: boolean;
15
- apiKey?: string;
16
- nonce?: bigint | undefined;
17
- fee?: {
18
- token?: string;
19
- amount?: number;
20
- gasPercent?: number;
21
- recipient: import("viem").Address;
22
- } | undefined;
23
- skipDBAction?: boolean | undefined;
24
- logger?: import("@funkit/api-base").Logger | undefined;
25
- };
26
- } | {
27
- rFunWallet: null;
28
- rFunWalletAuth: null;
29
- transferOp: null;
30
- envConfig: null;
31
- }>;
32
- };