@funkit/connect 5.5.1 → 5.5.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/components/MeldQuoteItem/MeldQuoteItem.d.ts +2 -2
  3. package/dist/components/SourceMeldQuoteItem/SourceMeldQuoteItem.d.ts +6 -1
  4. package/dist/domains/asset.d.ts +3 -1
  5. package/dist/hooks/queries/useMeldCurrencies.d.ts +1 -1
  6. package/dist/hooks/usePaymentSources.d.ts +0 -1
  7. package/dist/index.js +199 -105
  8. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +2 -1
  9. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +2 -1
  10. package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -1
  11. package/dist/utils/flags/config.d.ts +18 -3
  12. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  17. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/index.js +66 -66
  22. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  31. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 5.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b0a2c6c: remove same asset tag in polymarket
8
+ - a0d19fc: preload meld currencies
9
+ - e252efc: feat(connect): keep Card payment method beneath Transfer Crypto
10
+ - 20f5175: tweak meld design
11
+ - 0ead49a: hide back button in card input step
12
+ - Updated dependencies [20f5175]
13
+ - @funkit/api-base@1.9.2
14
+ - @funkit/utils@1.1.2
15
+ - @funkit/core@2.3.24
16
+ - @funkit/wagmi-tools@3.0.46
17
+
18
+ ## 5.5.2
19
+
20
+ ### Patch Changes
21
+
22
+ - af756c7: fix: same asset badge heurisics
23
+ - Updated dependencies [9cc9c7f]
24
+ - @funkit/fun-relay@0.1.7
25
+
3
26
  ## 5.5.1
4
27
 
5
28
  ### Patch Changes
@@ -2,11 +2,11 @@ import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
2
2
  import React from 'react';
3
3
  export declare const providerLabelMap: Record<MeldServiceProvider, string>;
4
4
  export interface MeldQuoteItemProps {
5
- badge?: string;
5
+ isBestQuote?: boolean;
6
6
  quote: MeldQuote | undefined;
7
7
  onClick?: () => void;
8
8
  isError?: boolean;
9
9
  isDisabled?: boolean;
10
10
  isActive?: boolean;
11
11
  }
12
- export declare const MeldQuoteItem: ({ quote, badge, onClick, isDisabled, isActive, }: MeldQuoteItemProps) => React.JSX.Element;
12
+ export declare const MeldQuoteItem: ({ quote, isBestQuote, onClick, isDisabled, isActive, }: MeldQuoteItemProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { MeldQuote } from '@funkit/api-base';
1
+ import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
2
2
  import React from 'react';
3
3
  interface SourceMeldQuoteItemProps {
4
4
  quote?: MeldQuote;
@@ -10,4 +10,9 @@ interface SourceMeldQuoteItemProps {
10
10
  error?: string;
11
11
  }
12
12
  export declare const SourceMeldQuoteItem: ({ quote, onClick, isLoading, isBestQuote, isPreselected, disabled, error, }: SourceMeldQuoteItemProps) => React.JSX.Element;
13
+ interface MeldProviderLabelProps {
14
+ serviceProvider: MeldServiceProvider;
15
+ isBest?: boolean;
16
+ }
17
+ export declare const MeldProviderLabel: ({ serviceProvider, isBest, }: MeldProviderLabelProps) => React.JSX.Element;
13
18
  export {};
@@ -12,13 +12,15 @@ interface AssetUsableToPayParms {
12
12
  config: FunkitCheckoutConfig;
13
13
  payerAddress: string;
14
14
  paymentMethod: PaymentMethod;
15
+ targetChainId: string;
16
+ targetTokenAddress: string;
15
17
  assetChainId: string;
16
18
  assetTokenAddress: string;
17
19
  assetUsdAmount: number | null;
18
20
  loginType: LoginType;
19
21
  isAllowedForCheckout: boolean;
20
22
  }
21
- export declare const isAssetUsableToPayForCheckout: ({ apiKey, config, payerAddress, paymentMethod, assetChainId, assetTokenAddress, assetUsdAmount, loginType, isAllowedForCheckout, }: AssetUsableToPayParms) => {
23
+ export declare const isAssetUsableToPayForCheckout: ({ apiKey, config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, loginType, isAllowedForCheckout, }: AssetUsableToPayParms) => {
22
24
  isUsable: boolean;
23
25
  reason: string;
24
26
  };
@@ -1 +1 @@
1
- export declare const useMeldCurrencies: () => import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldFiatCurrency[], Error>;
1
+ export declare const useMeldCurrencies: (isEnabled?: boolean) => import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldFiatCurrency[], Error>;
@@ -1,7 +1,6 @@
1
1
  import { type ConnectablePaymentMethodInfo, PaymentMethod } from '~/domains/paymentMethods';
2
2
  import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
3
3
  export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
4
- promoted: PaymentMethod | undefined;
5
4
  preferred: (import("~/domains/paymentMethods").PaymentMethodBrokerageInfo | import("~/domains/paymentMethods").PaymentMethodAccountInfo | import("~/domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
6
5
  moreSources: PaymentMethod[];
7
6
  };