@funkit/connect 1.0.15 → 1.0.16
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/FunButton/FunButton.d.ts +3 -2
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +5 -2
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +6 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +4 -0
- package/dist/components/FunInput/FunTextAreaInput.d.ts +8 -0
- package/dist/consts/quote.d.ts +9 -0
- package/dist/index.js +554 -238
- package/dist/utils/checkout.d.ts +8 -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/chunk-2B3SPBRY.js +100 -0
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +102 -0
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +95 -0
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +105 -0
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +98 -0
- package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +96 -0
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +92 -0
- package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +98 -0
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +94 -0
- package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +71 -0
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +66 -0
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +73 -0
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +107 -0
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +87 -0
- package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +94 -0
- package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +102 -0
- package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +178 -0
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +96 -0
- 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 +43 -43
- 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 +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 1.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4568619: feat: guard against insufficient wallet balance post-quote
|
|
8
|
+
- 765b5e2: feat: checkout help email
|
|
9
|
+
- 765b5e2: feat: checkout state backwards compatibility
|
|
10
|
+
- da97ee0: chore: cleanup console logs
|
|
11
|
+
- 77e69c8: feat: moonpay asset selection heuristics - default to ETH if WETH is target asset
|
|
12
|
+
- Updated dependencies [765b5e2]
|
|
13
|
+
- @funkit/core@1.0.6
|
|
14
|
+
- @funkit/wagmi-tools@1.0.7
|
|
15
|
+
|
|
3
16
|
## 1.0.15
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -3,8 +3,9 @@ import { BoxProps } from '../Box/Box';
|
|
|
3
3
|
import { TextProps } from '../Text/Text';
|
|
4
4
|
export type funButtonTypes = 'primary' | 'secondary' | 'warning';
|
|
5
5
|
interface FunButtonProps {
|
|
6
|
+
id?: string;
|
|
6
7
|
title: string;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
+
onClick?: (e?: any) => void;
|
|
8
9
|
titlePrefix?: React.ReactNode;
|
|
9
10
|
titleSuffix?: React.ReactNode;
|
|
10
11
|
type?: funButtonTypes;
|
|
@@ -14,5 +15,5 @@ interface FunButtonProps {
|
|
|
14
15
|
buttonStyle?: BoxProps['style'];
|
|
15
16
|
textColor?: BoxProps['color'];
|
|
16
17
|
}
|
|
17
|
-
export declare function FunButton({ title, onClick, titlePrefix, titleSuffix, isDisabled, type, borderRadius, titleWeight, buttonStyle, textColor, }: FunButtonProps): React.JSX.Element;
|
|
18
|
+
export declare function FunButton({ id, title, onClick, titlePrefix, titleSuffix, isDisabled, type, borderRadius, titleWeight, buttonStyle, textColor, }: FunButtonProps): React.JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CheckoutHistoryItem } from '@funkit/core';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { HistoryModalPages } from './FunCheckoutHistoryModal';
|
|
3
4
|
/**
|
|
4
5
|
* Processing info about a checkout history item (already created in backend)
|
|
5
6
|
*/
|
|
6
|
-
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, }: {
|
|
7
|
+
export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, setCurrentPage, animateOut, }: {
|
|
7
8
|
checkoutHistoryInfo: CheckoutHistoryItem;
|
|
9
|
+
setCurrentPage: Dispatch<SetStateAction<HistoryModalPages>>;
|
|
10
|
+
animateOut: boolean;
|
|
8
11
|
}): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FunInputProps } from './FunInput';
|
|
3
|
+
interface FunTextAreaInputProps extends Omit<FunInputProps, 'onChange' | 'onKeyDown'> {
|
|
4
|
+
onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
5
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, hasBackground, textColor, inputStyle, inputProps, error, focused: _focused, overrideBorderWidth, }: FunTextAreaInputProps): React.JSX.Element;
|
|
8
|
+
export {};
|
package/dist/consts/quote.d.ts
CHANGED
|
@@ -10,4 +10,13 @@ export declare const PENDING_QUOTE_MESSAGE_GENERATOR: {
|
|
|
10
10
|
2: () => string;
|
|
11
11
|
3: () => string;
|
|
12
12
|
};
|
|
13
|
+
export declare enum QuoteCustomErrorType {
|
|
14
|
+
INSUFFICIENT_BALANCE = 0
|
|
15
|
+
}
|
|
16
|
+
export declare const QUOTE_CUSTOM_ERROR_STRING_INFO: {
|
|
17
|
+
0: {
|
|
18
|
+
check: string;
|
|
19
|
+
display: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
13
22
|
export declare function generateQuoteApiErrorForDisplay(errorMessage?: string): string;
|