@funkit/connect 7.1.1 → 8.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 95ea941: remove katana chain support
8
+ - 95ea941: remove hardcoded logic
9
+
10
+ ### Patch Changes
11
+
12
+ - 9203321: feat(connect): migrate IsCheckoutActivated flag to statsig
13
+ - 507e0e4: Fix "New Deposit" button not working after successful brokerage transactions. The button now properly closes the current checkout and opens a new one.
14
+ - 3ee4395: Fix checkout initialization with placeholder addresses and add logout detection logging
15
+ - 864ff30: Hide token amount display for AA deposits with fee distribution
16
+ - ab6f6d2: Show impact <0.01% instead of negative price impact.
17
+ - 5c4a30f: preserve input amount as token or fiat based on selection when continue and return back
18
+ - ab6f6d2: apply output recalibration with swapImpact only
19
+ - Updated dependencies [9203321]
20
+ - Updated dependencies [95ea941]
21
+ - Updated dependencies [95ea941]
22
+ - @funkit/utils@1.1.23
23
+ - @funkit/api-base@2.1.0
24
+ - @funkit/chains@1.1.0
25
+
26
+ ## 8.0.0
27
+
28
+ ### Major Changes
29
+
30
+ - d0ccffb: feat: tron support
31
+
32
+ ### Patch Changes
33
+
34
+ - d0ccffb: Add TRON chain to mainnet IDs for minimum transfer value calculation
35
+ - 1a5b5a3: unify assets images by exporting them fun-relay
36
+ - 7b30849: feat(connect): fetch allowlist in parallel
37
+ - 186c477: feat(connect): block direct execution fetch with placeholder id '0x'
38
+ - 9d16c08: fix(connect): use onChainTxHash for explorer links in AA transactions
39
+
40
+ For account abstraction transactions, `txHash` is a userOpHash (internal identifier) while `onChainTxHash` is the actual on-chain transaction hash visible on block explorers. Explorer links now prefer `onChainTxHash` with fallback to `txHash`.
41
+
42
+ - 97df9ab: Show impact <0.01% instead of negative price impact.
43
+ - 364816e: feat(connect): pass customer key to brokerage quotes
44
+ - 6322220: fix(connect): safe flatten/stringify for statsig event logging
45
+ - 16542cc: checkout top announcement banner implemented which controlled by statsig
46
+ - Updated dependencies [1a5b5a3]
47
+ - Updated dependencies [e43c096]
48
+ - Updated dependencies [9d16c08]
49
+ - Updated dependencies [d0ccffb]
50
+ - Updated dependencies [9ee69b4]
51
+ - Updated dependencies [a50aa11]
52
+ - @funkit/fun-relay@2.2.2
53
+ - @funkit/chains@1.0.0
54
+ - @funkit/api-base@2.0.0
55
+
3
56
  ## 7.1.1
4
57
 
5
58
  ### Patch Changes
@@ -53,6 +53,14 @@ declare const _default: {
53
53
  readonly token_transfer: 60;
54
54
  };
55
55
  };
56
+ readonly checkouttopannouncementbanner: {
57
+ readonly value: {
58
+ readonly title: "";
59
+ readonly subtitle: "";
60
+ readonly iconSrc: "https://sdk-cdn.fun.xyz/images/announcement-icon-rounded.svg";
61
+ readonly chainIdList: readonly [];
62
+ };
63
+ };
56
64
  readonly dynamicrouting: {
57
65
  readonly value: readonly [{
58
66
  readonly routeId: "LIGHTER_ETH_SPOT";
@@ -264,6 +272,12 @@ declare const _default: {
264
272
  readonly enabletokentransfer: {
265
273
  readonly value: true;
266
274
  };
275
+ readonly enabletokentransferuniversaldepositaddress: {
276
+ readonly value: true;
277
+ };
278
+ readonly ischeckoutactivated: {
279
+ readonly value: true;
280
+ };
267
281
  readonly ismexico: {
268
282
  readonly value: {
269
283
  readonly mexico: false;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CheckoutTopAnnouncementBanner: () => React.JSX.Element | null;
@@ -1,6 +1,11 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  import { PaymentMethod, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
3
3
  export declare const getDynamicValueIconComponent: () => React.JSX.Element;
4
+ export declare function SupportedChainList({ chainIdList, iconSize, style, }: {
5
+ chainIdList: string[];
6
+ iconSize?: number;
7
+ style?: React.CSSProperties;
8
+ }): React.JSX.Element;
4
9
  export declare function PaymentMethodIcon({ paymentIcon, keyIconSize, }: {
5
10
  paymentIcon: ReactNode;
6
11
  keyIconSize: number;
@@ -1,3 +1 @@
1
- export declare const ASSET_LOGO_SRCS: Record<string, string>;
2
- export declare const FALLBACK_ASSET = "https://sdk-cdn.fun.xyz/images/dollar_circle.png";
3
- export declare function getAssetLogoSrc(symbol: string): string;
1
+ export { ASSET_LOGO_SRCS, FALLBACK_ASSET, getAssetLogoSrc, } from '@funkit/fun-relay';
@@ -4,7 +4,6 @@ export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3
4
4
  export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
5
5
  export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
6
6
  export declare function isEtherealCustomer(apiKey: string): apiKey is "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um";
7
- export declare function isKatanaCustomer(apiKey: string): apiKey is "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4";
8
7
  export declare function isHyperbeatCustomer(apiKey: string): apiKey is "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau";
9
8
  export declare function isHyperdashCustomer(apiKey: string): apiKey is "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe";
10
9
  export declare function isMonadCustomer(apiKey: string): apiKey is "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc";
@@ -1,6 +1,5 @@
1
1
  import type { FeeBreakdownV2 } from '@funkit/api-base';
2
2
  import type { RelayExecute, RelayQuote } from '@funkit/fun-relay';
3
- export declare const KATANA_BRIDGE_ALERT_THRESHOLD_PERCENT = 0.5;
4
3
  export type RelayQuoteMetadata = {
5
4
  relayQuote: RelayQuote['metadata']['relayQuote'];
6
5
  feeBreakdown?: FeeBreakdownV2;
@@ -6,6 +6,7 @@ export interface TrackEventData {
6
6
  value?: string | number;
7
7
  metadata?: object;
8
8
  }
9
+ export declare const eventCounts: Partial<Record<CheckoutModalEvent | WithdrawModalEvent, number>>;
9
10
  export declare const useTrack: () => {
10
11
  logEvent: (eventNameOrTrackEventData: CheckoutModalEvent | TrackEventData) => void;
11
12
  logMeasuredEvent: (trackEventData: Omit<TrackEventData, "value">) => void;
@@ -6,5 +6,7 @@ interface AllowedAssetsHookResult {
6
6
  isAllowed: (chainId: number | string, tokenAddress: Address) => boolean;
7
7
  isLoading: boolean;
8
8
  }
9
- export declare function useAllowedAssets(): AllowedAssetsHookResult;
9
+ export declare function useAllowedAssets({ enabled, }?: {
10
+ enabled?: boolean;
11
+ }): AllowedAssetsHookResult;
10
12
  export {};
@@ -1,14 +1,11 @@
1
1
  import { type ConnectablePaymentMethodInfo, PaymentMethod } from '../domains/paymentMethods';
2
- import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
3
- export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
4
- checkoutConfig: FunkitCheckoutConfig | undefined;
5
- }): {
2
+ export declare function usePaymentMethodEnablement(): {
6
3
  isFiatEnabled: boolean;
7
4
  isTokenTransferEnabled: boolean;
8
5
  isMeldEnabled: boolean;
9
6
  isBrokerageEnabled: boolean;
10
7
  };
11
- export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
8
+ export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string) => {
12
9
  preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
13
10
  moreSources: PaymentMethod[];
14
11
  comingSoon: PaymentMethod[];
@@ -18,7 +18,7 @@ interface UseTokenTransferResult {
18
18
  estPriceImpact: FeeValue | undefined;
19
19
  maxSlippage: FeeValue | undefined;
20
20
  qrCodeUri: QRCodeUri | undefined;
21
- blockchain: 'ethereum' | 'solana' | 'bitcoin';
21
+ blockchain: 'ethereum' | 'solana' | 'bitcoin' | 'tron';
22
22
  }
23
23
  export declare const useTokenTransfer: (selectedChainId: number, selectedToken: string, chainIds?: number[]) => UseTokenTransferResult;
24
24
  /**