@funkit/connect 1.0.14 → 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.
Files changed (48) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/FunButton/FunButton.d.ts +3 -2
  3. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +5 -2
  4. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +6 -0
  5. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +4 -0
  6. package/dist/components/FunInput/FunTextAreaInput.d.ts +8 -0
  7. package/dist/consts/quote.d.ts +9 -0
  8. package/dist/index.js +581 -241
  9. package/dist/utils/checkout.d.ts +8 -1
  10. package/dist/utils/formatTimestamp.d.ts +2 -1
  11. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +100 -0
  15. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +102 -0
  16. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +95 -0
  17. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +105 -0
  18. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +98 -0
  19. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +96 -0
  20. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +92 -0
  21. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +98 -0
  22. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +94 -0
  23. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +71 -0
  24. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +66 -0
  25. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +73 -0
  26. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +107 -0
  27. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +87 -0
  28. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +94 -0
  29. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +102 -0
  30. package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +178 -0
  31. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +96 -0
  32. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  34. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/index.js +74 -74
  39. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  48. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
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
+
16
+ ## 1.0.15
17
+
18
+ ### Patch Changes
19
+
20
+ - f2c5087: fix: normalization bug
21
+ - 762f52c: feat: processing page with completion time estimation
22
+
3
23
  ## 1.0.14
4
24
 
5
25
  ### 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,6 @@
1
+ import { CheckoutHistoryItem } from '@funkit/core';
2
+ import React from 'react';
3
+ export declare function FunCheckoutHistoryHelp({ checkoutHistoryInfo, animateOut, }: {
4
+ checkoutHistoryInfo: CheckoutHistoryItem;
5
+ animateOut: boolean;
6
+ }): React.JSX.Element;
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
+ export declare enum HistoryModalPages {
3
+ DETAIL = 0,
4
+ HELP = 1
5
+ }
2
6
  interface FunCheckoutHistoryModalProps {
3
7
  open: boolean;
4
8
  onClose: () => void;
@@ -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 {};
@@ -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;