@funkit/connect 5.5.21 → 6.0.2
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 +49 -0
- package/dist/{chunk-ES634CAR.js → chunk-IOMUPAAW.js} +1 -1
- package/dist/{chunk-OV3P5HQK.js → chunk-IVQ57535.js} +5 -3
- package/dist/{chunk-K4APSFTL.js → chunk-N6UWLAUQ.js} +1 -1
- package/dist/components/Box/Box.d.ts +17 -17
- package/dist/components/Dialog/Dialog.css.d.ts +2 -1
- package/dist/components/Dialog/hooks.d.ts +11 -0
- package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +0 -1
- package/dist/components/FunButton/FunButton.d.ts +2 -1
- package/dist/components/FunCheckoutHistory/FunCheckoutStatus.css.d.ts +0 -2
- package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +1 -12
- package/dist/components/FunCheckoutHistory/FunDirectExecutionStatus.d.ts +1 -1
- package/dist/components/FunCountdown/FunCountdown.d.ts +1 -4
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +2 -2
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -11
- package/dist/components/Icons/SpinnerIcon.d.ts +4 -2
- package/dist/components/Icons/StatusIcons.css.d.ts +16 -0
- package/dist/components/Icons/StatusIcons.d.ts +8 -8
- package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +5 -3
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +10 -0
- package/dist/consts/customers.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +23 -19
- package/dist/domains/fees.d.ts +2 -3
- package/dist/domains/meld.d.ts +4 -3
- package/dist/domains/paymentMethods.d.ts +1 -8
- package/dist/domains/quote.d.ts +2 -3
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -0
- package/dist/hooks/usePaymentSources.d.ts +0 -1
- package/dist/index.css +2792 -2767
- package/dist/index.js +4228 -5886
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +0 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +1 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +0 -1
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -7
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +0 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +0 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -12
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +1 -3
- package/dist/providers/FunkitCheckoutContext.d.ts +6 -0
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/providers/FunkitMeshProvider.d.ts +1 -19
- package/dist/providers/FunkitThemeProvider.d.ts +9 -3
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +9 -1
- package/dist/utils/flags/impl.d.ts +1 -0
- package/dist/utils/flags/types.d.ts +3 -2
- 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 +53 -53
- 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 +6 -6
- package/dist/components/Icons/EtherFiIcon.d.ts +0 -4
- package/dist/hooks/useMesh.d.ts +0 -19
- package/dist/modals/CheckoutModal/ConnectExchange.d.ts +0 -12
- package/dist/modals/CheckoutModal/MeshVerification.d.ts +0 -17
- package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"ua-parser-js": "^1.0.37",
|
|
90
90
|
"use-debounce": "^10.0.5",
|
|
91
91
|
"uuid": "^9.0.1",
|
|
92
|
-
"@funkit/api-base": "1.9.
|
|
93
|
-
"@funkit/core": "2.3.
|
|
94
|
-
"@funkit/
|
|
95
|
-
"@funkit/chains": "0.3.6",
|
|
92
|
+
"@funkit/api-base": "1.9.11",
|
|
93
|
+
"@funkit/core": "2.3.35",
|
|
94
|
+
"@funkit/wagmi-tools": "3.0.57",
|
|
96
95
|
"@funkit/utils": "1.1.8",
|
|
97
|
-
"@funkit/
|
|
96
|
+
"@funkit/chains": "0.3.7",
|
|
97
|
+
"@funkit/fun-relay": "0.1.12"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
100
100
|
"type": "git",
|
package/dist/hooks/useMesh.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MeshExchangeType } from '~/consts/mesh';
|
|
2
|
-
import type { FunSelectOption } from '../components/FunSelect/FunSelect';
|
|
3
|
-
import { type MeshConnectionInfo } from '../providers/FunkitMeshProvider';
|
|
4
|
-
export declare const useSupportedExchanges: () => MeshExchangeType[];
|
|
5
|
-
export declare const useMeshExchanges: ({ fullInfo, iconSize, }: {
|
|
6
|
-
fullInfo?: boolean;
|
|
7
|
-
iconSize?: number;
|
|
8
|
-
}) => {
|
|
9
|
-
options: FunSelectOption<MeshExchangeType>[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Fetches mesh-related network information based on the active chain user is logged in on, given an exchange
|
|
13
|
-
* @param exchange The mesh exchange user is currently connected with
|
|
14
|
-
*/
|
|
15
|
-
export declare const useMeshActiveNetworkInfo: (chainId: string | undefined, brokerType: MeshExchangeType | undefined) => {
|
|
16
|
-
meshSupportedTokens: string[];
|
|
17
|
-
meshNetworkId: string | undefined;
|
|
18
|
-
} | null;
|
|
19
|
-
export declare function useMeshAccountHoldings(targetChain: string, connection: MeshConnectionInfo | null): import("@tanstack/react-query").UseQueryResult<import("../domains/wallet").AssetHoldingsMap, Error>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type MeshExchangeType } from '~/consts/mesh';
|
|
3
|
-
import { type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
|
-
export type ConnectExchangeState = CheckoutModalCommonState & {
|
|
6
|
-
brokerType: MeshExchangeType;
|
|
7
|
-
};
|
|
8
|
-
export type ConnectExchangeNext = {
|
|
9
|
-
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
10
|
-
};
|
|
11
|
-
export declare const ConnectExchangeInfo: ModalStepInfo<FunCheckoutStep.CONNECT_EXCHANGE>;
|
|
12
|
-
export declare function ConnectExchange({ modalState, onNext, setModalState, }: ModalStepComponentProps<FunCheckoutStep.CONNECT_EXCHANGE>): React.JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Address } from 'viem';
|
|
3
|
-
import { type MeshExchangeType } from '~/consts/mesh';
|
|
4
|
-
import type { PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
5
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
6
|
-
export type MeshVerificationState = CheckoutModalCommonState & {
|
|
7
|
-
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
8
|
-
isSendingToQr: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type MeshVerificationNext = {
|
|
11
|
-
depositAddress: Address;
|
|
12
|
-
} | {
|
|
13
|
-
depositAddress: null;
|
|
14
|
-
brokerType: MeshExchangeType;
|
|
15
|
-
};
|
|
16
|
-
export declare const MeshVerificationInfo: ModalStepInfo<FunCheckoutStep.MESH_VERIFICATION>;
|
|
17
|
-
export declare function MeshVerification({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.MESH_VERIFICATION>): React.JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MeshExchangeType } from '~/consts/mesh';
|
|
3
|
-
import { type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
5
|
-
export type SelectBrokerageState = CheckoutModalCommonState;
|
|
6
|
-
export type SelectBrokerageNext = {
|
|
7
|
-
hasActiveConnection: true;
|
|
8
|
-
paymentInfo: PaymentMethodBrokerageInfo;
|
|
9
|
-
} | {
|
|
10
|
-
hasActiveConnection: false;
|
|
11
|
-
brokerType: MeshExchangeType;
|
|
12
|
-
};
|
|
13
|
-
export declare const SelectBrokerageInfo: ModalStepInfo<FunCheckoutStep.SELECT_BROKERAGE>;
|
|
14
|
-
export declare function SelectBrokerage({ onNext, }: ModalStepComponentProps<FunCheckoutStep.SELECT_BROKERAGE>): React.JSX.Element;
|