@funkit/connect 5.1.0 → 5.1.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.
Files changed (87) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/{chunk-2T4ZDGAO.js → chunk-A7G4HZZY.js} +9 -4
  3. package/dist/{chunk-DYPSSLLL.js → chunk-ELA2ZIK4.js} +7 -9
  4. package/dist/{chunk-5HIKBJTA.js → chunk-TTI2Q45P.js} +7 -9
  5. package/dist/components/Box/Box.d.ts +50 -50
  6. package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +3 -2
  7. package/dist/components/Dropdown/BaseDropdown.d.ts +3 -9
  8. package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
  9. package/dist/components/FunAlert/FunAlert.d.ts +3 -1
  10. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -3
  11. package/dist/components/FunBadge/FunBadge.d.ts +14 -4
  12. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +1 -2
  13. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryDetail.d.ts +1 -2
  14. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryTransaction.d.ts +7 -1
  15. package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +2 -0
  16. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +7 -0
  17. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  18. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +1 -1
  19. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +2 -1
  20. package/dist/components/Icons/New/PercentageIcon.d.ts +2 -0
  21. package/dist/components/SolanaDepositAlert/SolanaDepositAlert.d.ts +6 -0
  22. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +4 -3
  23. package/dist/consts/checkout.d.ts +7 -1
  24. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  25. package/dist/css/sprinkles.css.d.ts +62 -64
  26. package/dist/domains/asset.d.ts +12 -2
  27. package/dist/domains/checkoutRecipient.d.ts +6 -0
  28. package/dist/domains/quote.d.ts +8 -0
  29. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  30. package/dist/hooks/useTokenTransfer.d.ts +3 -2
  31. package/dist/index.css +2515 -2677
  32. package/dist/index.d.ts +7 -2
  33. package/dist/index.js +1993 -1588
  34. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
  35. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -1
  36. package/dist/modals/CheckoutModal/SelectAsset.d.ts +2 -0
  37. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +8 -2
  38. package/dist/providers/AuthenticationContext.d.ts +1 -2
  39. package/dist/providers/FunkitCheckoutContext.d.ts +3 -3
  40. package/dist/providers/FunkitHistoryContext.d.ts +2 -1
  41. package/dist/providers/FunkitThemeProvider.d.ts +18 -21
  42. package/dist/providers/GeneralWalletProvider.d.ts +8 -8
  43. package/dist/themes/baseTheme.js +1 -1
  44. package/dist/themes/darkTheme.js +2 -2
  45. package/dist/themes/lightTheme.js +2 -2
  46. package/dist/utils/checkout.d.ts +10 -2
  47. package/dist/utils/flags/config.d.ts +12 -0
  48. package/dist/utils/signature.d.ts +1 -0
  49. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  54. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  58. package/dist/wallets/walletConnectors/index.js +60 -60
  59. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  60. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  68. package/package.json +17 -17
  69. package/dist/components/FunAsset/FunAssetBadge.d.ts +0 -16
  70. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  71. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
  72. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
  73. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
  74. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
  75. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
  76. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
  77. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
  78. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
  79. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
  80. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
  81. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
  82. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
  83. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
  84. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
  85. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
  86. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
  87. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
@@ -2,7 +2,6 @@ import type { CheckoutHistoryItem } from '@funkit/api-base';
2
2
  import React from 'react';
3
3
  interface FunCheckoutHistoryDetailProps {
4
4
  checkoutHistoryInfo: CheckoutHistoryItem | undefined;
5
- hideStatus?: boolean;
6
5
  onHelp: () => void;
7
6
  onClose: () => void;
8
7
  /** Element ID to be used to mount the CTA action bar */
@@ -12,5 +11,5 @@ interface FunCheckoutHistoryDetailProps {
12
11
  /**
13
12
  * Processing info about a checkout history item (already created in backend)
14
13
  */
15
- export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, hideStatus, onHelp, onClose, bottomBarId, includeGenerateActionsParams, }: FunCheckoutHistoryDetailProps): React.JSX.Element;
14
+ export declare function FunCheckoutHistoryDetail({ checkoutHistoryInfo, onHelp, onClose, bottomBarId, includeGenerateActionsParams, }: FunCheckoutHistoryDetailProps): React.JSX.Element;
16
15
  export {};
@@ -1,5 +1,11 @@
1
- import type { CheckoutHistoryItem } from '@funkit/api-base';
1
+ import type { CheckoutHistoryItem, CheckoutState } from '@funkit/api-base';
2
2
  import React from 'react';
3
+ interface StatusTagProps {
4
+ state: CheckoutState;
5
+ refundState: CheckoutHistoryItem['refundState'];
6
+ isDelayed: boolean;
7
+ }
8
+ export declare function StatusTag({ state, refundState, isDelayed }: StatusTagProps): React.JSX.Element;
3
9
  interface FunTxSummaryHistoryProps {
4
10
  checkoutHistoryItem: CheckoutHistoryItem | undefined;
5
11
  isDelayed?: boolean;
@@ -5,4 +5,6 @@ interface FunCheckoutStatusProps {
5
5
  onOrderDelayed?: () => void;
6
6
  }
7
7
  export declare function FunCheckoutStatus({ checkoutHistoryItem, onOrderDelayed, }: FunCheckoutStatusProps): React.JSX.Element | null;
8
+ /** Special status component for checkout Direct Execution flow (only success state is displayable to user) */
9
+ export declare const DirectExecutionStatus: () => React.JSX.Element;
8
10
  export {};
@@ -0,0 +1,7 @@
1
+ import { type DirectExecution } from '@funkit/api-base';
2
+ import React from 'react';
3
+ export declare function FunDirectExecutionHistoryDetail({ directExecution, bottomBarId, onClose, }: {
4
+ directExecution: DirectExecution;
5
+ bottomBarId: string;
6
+ onClose: () => void;
7
+ }): React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  export interface FunTooltipProps {
3
- content: string;
4
- children: ReactNode;
3
+ content: ReactNode;
4
+ children?: ReactNode;
5
5
  wrapperElementRef?: React.RefObject<HTMLDivElement>;
6
6
  /** Renders the open tooltip based on available horizontal space, ie. ignoring the `tooltipPosition` prop,
7
7
  * if the tooltip were to overflow beyond the boundaries of the provided `wrapperElementRef` element
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type BoxProps } from '../Box/Box';
3
- export declare function FunTxSummaryBox({ children, borderRadius, ...otherProps }: BoxProps): React.JSX.Element;
3
+ export declare function FunTxSummaryBox({ children, ...otherProps }: BoxProps): React.JSX.Element;
4
4
  export declare function FunTxSummaryLineItem({ children, ...otherProps }: BoxProps): React.JSX.Element;
5
5
  export declare function FunTxSummaryLineItemKeyText({ text }: {
6
6
  text: string;
@@ -6,6 +6,7 @@ interface PaymentMethodSummaryProps {
6
6
  customRecipient: FunAddress | undefined;
7
7
  isLoading: boolean;
8
8
  estimatedTime: number;
9
+ showTimeEstimate?: boolean;
9
10
  }
10
- export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTime, isLoading, }: PaymentMethodSummaryProps): React.JSX.Element;
11
+ export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTime, isLoading, showTimeEstimate, }: PaymentMethodSummaryProps): React.JSX.Element;
11
12
  export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const PercentageIcon: () => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface SolanaDepositAlertProps {
3
+ onClick: () => void;
4
+ }
5
+ export declare const SolanaDepositAlert: ({ onClick }: SolanaDepositAlertProps) => React.JSX.Element | null;
6
+ export {};
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import type { PriceImpact } from '~/hooks/useTokenTransfer';
2
+ import type { FeeValue } from '~/hooks/useTokenTransfer';
3
3
  interface TransferTokenDetailsProps {
4
4
  minAmount?: number;
5
5
  disabled?: boolean;
6
- priceImpact: PriceImpact;
6
+ priceImpact: FeeValue;
7
+ maxSlippage: FeeValue;
7
8
  }
8
- export declare const TransferTokenDetails: ({ minAmount, disabled, priceImpact, }: TransferTokenDetailsProps) => React.JSX.Element;
9
+ export declare const TransferTokenDetails: ({ minAmount, disabled, priceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
9
10
  export {};
@@ -1,10 +1,16 @@
1
1
  export declare enum CheckoutInitStepMessage {
2
2
  CONFIRMING = 0,
3
- PREPARING_DATA = 1
3
+ PREPARING_DATA = 1,
4
+ SWITCH_CHAIN = 2,
5
+ WAITING_FOR_SIGNATURE = 3,
6
+ WAITING_FOR_CONFIRMATION = 4
4
7
  }
5
8
  export declare const CHECKOUT_STEP_MESSAGE: {
6
9
  1: string;
7
10
  0: string;
11
+ 2: string;
12
+ 3: string;
13
+ 4: string;
8
14
  };
9
15
  export declare enum Web3AccountBalanceMessage {
10
16
  SIGN_TX = 0,
@@ -2,5 +2,5 @@ import { type ThemeVars } from './sprinkles.css';
2
2
  export declare function cssObjectFromTheme(theme: ThemeVars | (() => ThemeVars), { extends: baseTheme }?: {
3
3
  extends?: ThemeVars | (() => ThemeVars);
4
4
  }): {
5
- [x: string]: string;
5
+ [cssVarName: string]: string;
6
6
  };