@funkit/connect 5.5.4 → 5.5.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.
- package/CHANGELOG.md +13 -0
- package/dist/components/FunNoResults/FunNoResults.d.ts +5 -2
- package/dist/components/Icons/CoinsIcon.d.ts +4 -0
- package/dist/hooks/usePaymentSources.d.ts +8 -0
- package/dist/index.js +1020 -920
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +56 -56
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 5.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ce6f230: fix: katana terms link
|
|
8
|
+
|
|
9
|
+
## 5.5.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 8e6ce3f: feat: add new variant of FunNoResults, custom callback specified by client
|
|
14
|
+
- 93e43d6: fix: qr code conditional hide
|
|
15
|
+
|
|
3
16
|
## 5.5.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
interface FunNoResultsProps {
|
|
3
3
|
text: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
variant?: 'default' | 'actionable';
|
|
6
|
+
actionButton?: ReactNode;
|
|
4
7
|
}
|
|
5
|
-
export declare const FunNoResults: ({ text }: FunNoResultsProps) => React.JSX.Element;
|
|
8
|
+
export declare const FunNoResults: ({ text, title, variant, actionButton, }: FunNoResultsProps) => React.JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type ConnectablePaymentMethodInfo, PaymentMethod } from '~/domains/paymentMethods';
|
|
2
2
|
import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
3
|
+
export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
|
|
4
|
+
checkoutConfig: FunkitCheckoutConfig | undefined;
|
|
5
|
+
}): {
|
|
6
|
+
isFiatEnabled: boolean;
|
|
7
|
+
isTokenTransferEnabled: boolean;
|
|
8
|
+
isBrokerageEnabled: boolean;
|
|
9
|
+
isCardEnabled: boolean;
|
|
10
|
+
};
|
|
3
11
|
export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
|
|
4
12
|
preferred: (import("~/domains/paymentMethods").PaymentMethodBrokerageInfo | import("~/domains/paymentMethods").PaymentMethodAccountInfo | import("~/domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
|
|
5
13
|
moreSources: PaymentMethod[];
|