@funkit/connect 7.1.1 → 8.0.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,35 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - d0ccffb: feat: tron support
8
+
9
+ ### Patch Changes
10
+
11
+ - d0ccffb: Add TRON chain to mainnet IDs for minimum transfer value calculation
12
+ - 1a5b5a3: unify assets images by exporting them fun-relay
13
+ - 7b30849: feat(connect): fetch allowlist in parallel
14
+ - 186c477: feat(connect): block direct execution fetch with placeholder id '0x'
15
+ - 9d16c08: fix(connect): use onChainTxHash for explorer links in AA transactions
16
+
17
+ 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`.
18
+
19
+ - 97df9ab: Show impact <0.01% instead of negative price impact.
20
+ - 364816e: feat(connect): pass customer key to brokerage quotes
21
+ - 6322220: fix(connect): safe flatten/stringify for statsig event logging
22
+ - 16542cc: checkout top announcement banner implemented which controlled by statsig
23
+ - Updated dependencies [1a5b5a3]
24
+ - Updated dependencies [e43c096]
25
+ - Updated dependencies [9d16c08]
26
+ - Updated dependencies [d0ccffb]
27
+ - Updated dependencies [9ee69b4]
28
+ - Updated dependencies [a50aa11]
29
+ - @funkit/fun-relay@2.2.2
30
+ - @funkit/chains@1.0.0
31
+ - @funkit/api-base@2.0.0
32
+
3
33
  ## 7.1.1
4
34
 
5
35
  ### 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,9 @@ declare const _default: {
264
272
  readonly enabletokentransfer: {
265
273
  readonly value: true;
266
274
  };
275
+ readonly enabletokentransferuniversaldepositaddress: {
276
+ readonly value: true;
277
+ };
267
278
  readonly ismexico: {
268
279
  readonly value: {
269
280
  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';
@@ -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 {};
@@ -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
  /**