@funkit/connect 8.2.1-next.2 → 8.3.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 +80 -0
- package/dist/__generated__/default_configs.d.ts +7 -0
- package/dist/{chunk-BP7VOYBS.js → chunk-A24XIU2M.js} +3 -1
- package/dist/{chunk-MYPFORR2.js → chunk-CMS4F5PL.js} +3 -2
- package/dist/{chunk-KKGSXLMH.js → chunk-GRQP5R23.js} +3 -2
- package/dist/clients/fanatics.css +3648 -3563
- package/dist/clients/fanatics.js +3 -3
- package/dist/components/Box/Box.d.ts +28 -28
- package/dist/css/sprinkles.css.d.ts +40 -28
- package/dist/hooks/queries/useRecentCheckouts.d.ts +0 -5
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/useRelayBypass.d.ts +0 -9
- package/dist/hooks/useUserIpInfo.d.ts +19 -0
- package/dist/index.css +3648 -3563
- package/dist/index.js +2203 -2226
- package/dist/providers/FunkitConfigContext.d.ts +9 -2
- package/dist/providers/FunkitMoonpayProvider.d.ts +0 -14
- package/dist/providers/FunkitThemeProvider.d.ts +18 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +10 -10
- package/package.json +4 -4
|
@@ -5,11 +5,6 @@ interface RecentCheckoutsQuery {
|
|
|
5
5
|
isVisible: boolean;
|
|
6
6
|
paymentMethod?: PaymentMethod;
|
|
7
7
|
}
|
|
8
|
-
interface RefreshIntervalConfig {
|
|
9
|
-
listRefresh: number;
|
|
10
|
-
itemRefresh: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function useCheckoutRefreshInterval(): RefreshIntervalConfig;
|
|
13
8
|
/**
|
|
14
9
|
* @returns recent checkouts tied to a recipient address used in the token transfer flow
|
|
15
10
|
*/
|
|
@@ -3,7 +3,7 @@ export declare function usePaymentMethodEnablement(): {
|
|
|
3
3
|
isFiatEnabled: boolean;
|
|
4
4
|
isTokenTransferEnabled: boolean;
|
|
5
5
|
isMeldEnabled: boolean;
|
|
6
|
-
isBrokerageEnabled:
|
|
6
|
+
isBrokerageEnabled: false;
|
|
7
7
|
};
|
|
8
8
|
export type PaymentMethodType = 'crypto' | 'fiat';
|
|
9
9
|
export declare const usePaymentSources: (currentPaymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, type?: PaymentMethodType) => {
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import type { Address } from 'viem';
|
|
2
1
|
import { PaymentMethod } from '../domains/paymentMethods';
|
|
3
|
-
export interface RelayBypassChainsAndTokens {
|
|
4
|
-
[chainId: number]: string[];
|
|
5
|
-
}
|
|
6
2
|
interface GetIsRelayEnabledParams {
|
|
7
|
-
fromChainId: string;
|
|
8
|
-
fromTokenAddress: string;
|
|
9
|
-
toChainId: string;
|
|
10
|
-
toTokenAddress: string;
|
|
11
3
|
paymentMethod: PaymentMethod | undefined;
|
|
12
4
|
isAdditionalActionsRequired: boolean;
|
|
13
5
|
}
|
|
14
6
|
export interface UseRelayBypassReturn {
|
|
15
7
|
getIsRelayEnabled: (params: GetIsRelayEnabledParams) => boolean;
|
|
16
8
|
}
|
|
17
|
-
export declare function useSourceTokenRelayEnabled(): (chainId: number | string, tokenAddress: Address) => boolean;
|
|
18
9
|
export declare function useRelayBypass(): UseRelayBypassReturn;
|
|
19
10
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FunkitUserIpInfo } from '../providers/FunkitMoonpayProvider';
|
|
2
|
+
export interface UserIpInfoFromMoonpay {
|
|
3
|
+
/** https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
|
|
4
|
+
alpha2: 'AU' | 'CA' | 'US' | string;
|
|
5
|
+
state: string;
|
|
6
|
+
alpha3: string;
|
|
7
|
+
country: string;
|
|
8
|
+
ipAddress: string;
|
|
9
|
+
isAllowed: boolean;
|
|
10
|
+
isBuyAllowed: boolean;
|
|
11
|
+
isNftAllowed: boolean;
|
|
12
|
+
isSellAllowed: boolean;
|
|
13
|
+
isBalanceLedgerWithdrawAllowed: boolean;
|
|
14
|
+
isLowLimitEnabled: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function useUserIpInfo(): {
|
|
17
|
+
userIpInfo: FunkitUserIpInfo | undefined;
|
|
18
|
+
isLoadingGeoCheck: boolean;
|
|
19
|
+
};
|