@funkit/connect 3.0.3 → 3.1.1

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 (74) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/components/Dialog/Dialog.d.ts +10 -3
  3. package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
  4. package/dist/components/DydxSwitchModalTab/DydxSwitchModalTab.d.ts +3 -4
  5. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +16 -0
  6. package/dist/components/ErrorBoundary/ErrorFallback.d.ts +2 -0
  7. package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +1 -0
  8. package/dist/components/FunButton/FunButton.d.ts +3 -1
  9. package/dist/components/FunCountdown/FunCountdown.d.ts +5 -3
  10. package/dist/components/FunNotification/FunNotification.d.ts +1 -1
  11. package/dist/components/FunPayments/FunPaymentMeshType.d.ts +2 -2
  12. package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -1
  13. package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +4 -4
  14. package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +1 -1
  15. package/dist/consts/customers.d.ts +1 -0
  16. package/dist/consts/payment.d.ts +1 -1
  17. package/dist/consts/quote.d.ts +1 -1
  18. package/dist/hooks/useAnimatedNavigation.d.ts +1 -0
  19. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  20. package/dist/hooks/useCheckoutType.d.ts +5 -11
  21. package/dist/hooks/useMesh.d.ts +1 -0
  22. package/dist/index.css +15 -15
  23. package/dist/index.d.ts +4 -2
  24. package/dist/index.js +4776 -4141
  25. package/dist/modals/CheckoutModal/CheckoutComplete.d.ts +13 -0
  26. package/dist/modals/{FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts → CheckoutModal/CheckoutPrimaryInfo.d.ts} +1 -1
  27. package/dist/modals/CheckoutModal/ConfirmationStep.d.ts +36 -0
  28. package/dist/modals/CheckoutModal/ConnectExchange.d.ts +16 -0
  29. package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +8 -0
  30. package/dist/modals/CheckoutModal/InputAmount.d.ts +10 -0
  31. package/dist/modals/CheckoutModal/MeshVerification.d.ts +14 -0
  32. package/dist/modals/CheckoutModal/PaymentSetup.d.ts +38 -0
  33. package/dist/modals/CheckoutModal/SelectAsset.d.ts +15 -0
  34. package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +18 -0
  35. package/dist/modals/CheckoutModal/stepTransition.d.ts +74 -0
  36. package/dist/modals/CheckoutModal/useAccountBalancePostCheckout.d.ts +3 -0
  37. package/dist/modals/CheckoutModal/useAssetPrice.d.ts +9 -0
  38. package/dist/modals/CheckoutModal/useBottomSection.d.ts +2 -0
  39. package/dist/modals/CheckoutModal/useRedirectToCheckoutHistory.d.ts +3 -0
  40. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +25 -0
  41. package/dist/modals/CheckoutModal/useUpdateSourceAssetForCard.d.ts +2 -0
  42. package/dist/providers/FunkitCheckoutContext.d.ts +24 -6
  43. package/dist/providers/FunkitMeshProvider.d.ts +12 -6
  44. package/dist/providers/FunkitMoonpayProvider.d.ts +3 -1
  45. package/dist/providers/ModalContext.d.ts +1 -1
  46. package/dist/utils/{assetAbort.d.ts → aborts.d.ts} +1 -0
  47. package/dist/utils/assets.d.ts +8 -1
  48. package/dist/utils/checkout.d.ts +2 -2
  49. package/dist/utils/exhaustiveCheck.d.ts +1 -0
  50. package/dist/utils/flags/config.d.ts +0 -10
  51. package/dist/utils/flags/index.d.ts +0 -1
  52. package/dist/utils/funLogger.d.ts +1 -1
  53. package/dist/utils/mesh.d.ts +1 -1
  54. package/dist/utils/purifyCheckoutHistoryItem.d.ts +3 -0
  55. package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +27 -0
  56. package/dist/wallets/walletConnectors/index.js +40 -40
  57. package/package.json +20 -6
  58. package/dist/components/FunMeshVerificationStep/FunMeshVerificationStep.d.ts +0 -12
  59. package/dist/modals/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +0 -8
  60. package/dist/modals/FunCheckoutModal/FunCheckoutConnectExchangeStep.d.ts +0 -10
  61. package/dist/modals/FunCheckoutModal/FunCheckoutInputAmountStep.d.ts +0 -9
  62. package/dist/modals/FunCheckoutModal/FunCheckoutModal.d.ts +0 -22
  63. package/dist/modals/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +0 -10
  64. package/dist/modals/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +0 -9
  65. package/dist/wallets/walletConnectors/{chunk-B5D7DYVV.js → chunk-2EMZOYQI.js} +3 -3
  66. package/dist/wallets/walletConnectors/{chunk-4HKPVECK.js → chunk-5K4DIMYR.js} +3 -3
  67. package/dist/wallets/walletConnectors/{chunk-KDGMYRMC.js → chunk-AUVBWDIK.js} +3 -3
  68. package/dist/wallets/walletConnectors/{chunk-4K3EKHXR.js → chunk-AXPQHNUI.js} +3 -3
  69. package/dist/wallets/walletConnectors/{chunk-5MVCKMZT.js → chunk-B7FHT3CB.js} +3 -3
  70. package/dist/wallets/walletConnectors/{chunk-HMDUVRZP.js → chunk-EFIENLEE.js} +3 -3
  71. package/dist/wallets/walletConnectors/{chunk-HLH777AC.js → chunk-L7QI6PBN.js} +3 -3
  72. package/dist/wallets/walletConnectors/{chunk-5NZLWT3Y.js → chunk-QP2BIVXD.js} +4 -4
  73. package/dist/wallets/walletConnectors/{chunk-YRK6XWL6.js → chunk-UWZQZY4S.js} +4 -4
  74. package/dist/wallets/walletConnectors/{chunk-VU6B3HMD.js → chunk-UZEMNN3Q.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8b35d64: refactor: move react-query to peerDeps
8
+ - 4f8422e: fix: use correct typing for openModal
9
+ - e6bbeaf: refactor: change input amount related text color to secondary
10
+ - e6bbeaf: refactor: always display divider in bottom
11
+ - 3d160a2: refactor: fix StrictMode behavior
12
+
13
+ ## 3.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - c98080b: refactor: persist Signature Denied message after signature is rejected
18
+ - 4bcc21b: feat: dynamic action params
19
+
20
+ ### Patch Changes
21
+
22
+ - 13b3185: fix: unaccesible login options when misconfigured
23
+ - f77e6b1: fix: stringify and persist generateActionsParams to checkout record
24
+ - 463a9d6: feat: show exact absolute amount initially
25
+ - 4bcc21b: fix: clicking back on order review breaking navigation & typos
26
+ - 4bcc21b: fix: silence console warnings
27
+ - 298847e: feat: added ability for getCheckoutQuote to be aborted
28
+ - 8a4aee3: refactor: update geoblock list
29
+ - e0c16aa: fix: modal topbar padding
30
+ - bd54935: feat: added & exposed 2 new hooks - useCheckoutListenerByUserId and useCheckoutListenerByCheckoutId
31
+ - e045534: refactor: non-nullable checkoutId
32
+ - f450fe5: refactor: remove redundant checkoutItem usage
33
+ - ba87dcf: refactor: use arbitrum as target chain for dydx in asset selection phase
34
+ - 3d974d2: fix: okx exchange connection
35
+ - 479287a: refactor: better api error message handling
36
+ - 4bcc21b: fix: fix phantom wallet icon
37
+ - 5a2a8e2: fix: error messages not appearing in checkout
38
+ - 4bcc21b: fix: okx icon
39
+ - b23ab80: fix: update dividers behavior&visuals
40
+ - 22d7f9a: refactor: silence flag exposure logs
41
+ - 500519d: refactor: remove isFastForwarded
42
+ - 13b3185: fix: redundant login option divider
43
+ - 010b5fe: chore: deprecate unused flags
44
+ - 53ebefb: refactor: add possibility for always displayed modal dividers
45
+ - Updated dependencies [f77e6b1]
46
+ - Updated dependencies [3080712]
47
+ - Updated dependencies [298847e]
48
+ - Updated dependencies [479287a]
49
+ - @funkit/api-base@1.1.1
50
+ - @funkit/core@2.1.6
51
+ - @funkit/wagmi-tools@3.0.8
52
+
3
53
  ## 3.0.3
4
54
 
5
55
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
+ import { FunCountdownProps } from '../FunCountdown/FunCountdown';
3
4
  interface DialogProps {
4
5
  open: boolean;
5
6
  onClose: () => void;
@@ -16,7 +17,7 @@ interface DialogProps {
16
17
  */
17
18
  export declare function Dialog({ children, onClose, open, titleId, isHidden, isSmartCloseable, }: DialogProps): React.JSX.Element;
18
19
  export declare namespace Dialog {
19
- var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, isBackDisabled, onBack, backAnimation, skipBackDelay, countdownSeconds, countdownKey, delayCountdownReturnByBuffer, dydxHideBack, }: DialogTitleProps) => React.JSX.Element;
20
+ var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, isBackDisabled, onBack, countdownRenderProps, backAnimation, skipBackDelay, countdownSeconds, countdownKey, delayCountdownReturnByBuffer, dydxHideBack, }: DialogTitleProps) => React.JSX.Element;
20
21
  var Content: ({ children, fullHeight, paddingLeft, paddingBottom, className, withTopDivider, withBottomDivider, id, ...boxProps }: DialogContentProps) => React.JSX.Element;
21
22
  var BottomSection: ({ paddingX, ...boxProps }: Omit<BoxProps, "children">) => React.JSX.Element;
22
23
  var BottomBar: ({ topSection, actionButtonProps, bottomSection, }: import("../FunBottomBar/FunBottomBar").FunBottomBarProps) => React.JSX.Element;
@@ -25,8 +26,8 @@ interface DialogContentProps extends BoxProps {
25
26
  children: ReactNode;
26
27
  /** Whether the content should fill all available space */
27
28
  fullHeight?: boolean;
28
- withTopDivider?: boolean;
29
- withBottomDivider?: boolean;
29
+ withTopDivider?: 'always' | 'scroll' | 'never';
30
+ withBottomDivider?: 'always' | 'scroll' | 'never';
30
31
  id?: string;
31
32
  }
32
33
  export interface DialogTitleProps {
@@ -44,5 +45,11 @@ export interface DialogTitleProps {
44
45
  countdownKey?: string;
45
46
  delayCountdownReturnByBuffer?: boolean;
46
47
  dydxHideBack?: boolean;
48
+ countdownRenderProps?: {
49
+ onBeforeCountdownEnds?: FunCountdownProps['onBeforeCountdownEnds'];
50
+ onBeforeCountdownEndsSeconds?: FunCountdownProps['onBeforeCountdownEndsSeconds'];
51
+ onCountdownEnded?: FunCountdownProps['onCountdownEnded'];
52
+ onCountdownLastSecond?: FunCountdownProps['onCountdownLastSecond'];
53
+ };
47
54
  }
48
55
  export {};
@@ -1,4 +1,5 @@
1
1
  export declare const SCROLL_BAR_WIDTH = 6;
2
+ export declare const BASE_DIALOG_PADDING = "6";
2
3
  export declare const dialog: string;
3
4
  export declare const dialogCompact: string;
4
5
  export declare const dialogMobile: string;
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { FunCheckoutStep } from '../../modals/FunCheckoutModal/FunCheckoutModal';
3
2
  import { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
4
3
  interface DydxSwitchTabProps {
5
- checkoutItem: FunkitActiveCheckoutItem | null;
6
- checkoutStep: FunCheckoutStep;
4
+ checkoutItem: FunkitActiveCheckoutItem;
5
+ showSwitch: boolean;
7
6
  onClose?: () => void;
8
7
  }
9
- export declare function DydxSwitchTab({ checkoutItem, checkoutStep, onClose, }: DydxSwitchTabProps): React.JSX.Element | null;
8
+ export declare function DydxSwitchTab({ checkoutItem, showSwitch, onClose, }: DydxSwitchTabProps): React.JSX.Element | null;
10
9
  export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { Component, ErrorInfo, ReactNode } from 'react';
3
+ interface ErrorBoundaryProps {
4
+ children: ReactNode;
5
+ fallback?: ReactNode;
6
+ }
7
+ interface ErrorBoundaryState {
8
+ hasError: boolean;
9
+ }
10
+ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
11
+ constructor(props: ErrorBoundaryProps);
12
+ static getDerivedStateFromError(_: Error): ErrorBoundaryState;
13
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
14
+ render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
15
+ }
16
+ export default ErrorBoundary;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ErrorFallback: () => React.JSX.Element;
@@ -1 +1,2 @@
1
+ export declare const BOTTOM_BAR_TOP_PADDING: 18;
1
2
  export declare const topSectionDynamicPadding: string;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { BoxProps } from '../Box/Box';
2
3
  export type FunButtonTypes = 'primary' | 'secondary' | 'tertiary';
3
4
  export interface FunButtonProps {
4
5
  id?: string;
@@ -8,5 +9,6 @@ export interface FunButtonProps {
8
9
  isDisabled?: boolean;
9
10
  isLoading?: boolean;
10
11
  loaderSize?: number;
12
+ borderRadius?: BoxProps['borderRadius'];
11
13
  }
12
- export declare function FunButton({ id, title, onClick, isDisabled, type, isLoading, loaderSize, }: FunButtonProps): React.JSX.Element;
14
+ export declare function FunButton({ id, title, onClick, isDisabled, type, isLoading, loaderSize, borderRadius, }: FunButtonProps): React.JSX.Element;
@@ -1,11 +1,13 @@
1
1
  import React, { ReactNode } from 'react';
2
- interface FunCountdownProps {
2
+ export interface FunCountdownProps {
3
3
  countdownSeconds: number;
4
4
  initialRemainingSeconds?: number;
5
5
  counterSize?: number;
6
6
  strokeWidth?: number;
7
7
  onCountdownEnded?: () => void;
8
+ onBeforeCountdownEndsSeconds?: number;
9
+ onBeforeCountdownEnds?: () => void;
10
+ onCountdownLastSecond?: () => void;
8
11
  children?: ReactNode | ((remainingSeconds: number) => ReactNode);
9
12
  }
10
- export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, strokeWidth, children, }: FunCountdownProps) => React.JSX.Element;
11
- export {};
13
+ export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, onBeforeCountdownEnds, onBeforeCountdownEndsSeconds, onCountdownLastSecond, strokeWidth, children, }: FunCountdownProps) => React.JSX.Element;
@@ -11,7 +11,7 @@ interface FunNotificationProps {
11
11
  containerProps?: React.ComponentProps<typeof Box>;
12
12
  isVisible?: boolean;
13
13
  }
14
- type FunNotificationType = 'default' | 'error' | 'warning';
14
+ type FunNotificationType = 'default' | 'error' | 'warning' | 'hint';
15
15
  /**
16
16
  * A notification/message component with height resizing animation.
17
17
  * Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering.
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import { MeshExchanges } from '../../utils/mesh';
3
3
  export interface FunPaymentMeshTypeProps {
4
4
  isParentLoading: boolean;
5
- onContinue: (exchange: MeshExchanges) => void;
5
+ onConfirmExchange: (exchange: MeshExchanges) => void;
6
6
  }
7
7
  /**
8
8
  * This component handles payments <> mesh integration
9
9
  */
10
- export declare function FunPaymentMeshType({ isParentLoading, onContinue, }: FunPaymentMeshTypeProps): React.JSX.Element;
10
+ export declare function FunPaymentMeshType({ isParentLoading, onConfirmExchange, }: FunPaymentMeshTypeProps): React.JSX.Element;
@@ -6,11 +6,12 @@ export declare function ExistingPaymentMethodItem({ paymentMethodInfo, }: {
6
6
  /**
7
7
  * Handle selection and adding of payment methods
8
8
  */
9
- export declare function FunPaymentMethods({ primaryInfo, checkoutId, onSelect, isDisabled, depositAmount, isLoadingGeoCheck, }: {
9
+ export declare function FunPaymentMethods({ primaryInfo, checkoutId, onSelect, isDisabled, depositAmount, isLoadingGeoCheck, onCloseWrapper, }: {
10
10
  primaryInfo: React.ReactNode;
11
11
  checkoutId: string;
12
12
  onSelect: (paymentMethodInfo: PaymentMethodInfo) => void;
13
13
  isDisabled?: boolean;
14
14
  depositAmount: string;
15
15
  isLoadingGeoCheck: boolean;
16
+ onCloseWrapper: () => void;
16
17
  }): React.JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { Address } from 'viem';
3
- export declare function FunPaymentMoonpayType({ paymentAddress, depositToken, depositTokenChainId, depositTokenAmount, redirectToCheckoutHistory, }: {
3
+ export interface FunPaymentMoonpayProps {
4
4
  paymentAddress: Address;
5
5
  depositToken: string;
6
6
  depositTokenChainId: string;
7
7
  depositTokenAmount: number;
8
- onBackToHome: () => void;
9
- redirectToCheckoutHistory?: (depositAddress: string) => void;
10
- }): React.JSX.Element;
8
+ redirectToCheckoutHistory?: (depositAddress: Address) => void;
9
+ }
10
+ export declare function FunPaymentMoonpayType({ paymentAddress, depositToken, depositTokenChainId, depositTokenAmount, redirectToCheckoutHistory, }: FunPaymentMoonpayProps): React.JSX.Element;
@@ -9,6 +9,6 @@ export type FeesItem = null | {
9
9
  platformFeesTokenSymbol?: string | null;
10
10
  };
11
11
  export declare function FunTransactionSummary({ checkoutId, errorMessage, }: {
12
- checkoutId: string | null;
12
+ checkoutId: string;
13
13
  errorMessage?: string;
14
14
  }): React.JSX.Element;
@@ -1 +1,2 @@
1
1
  export declare const DYDX_API_KEY = "NJq0CGrsE19xBbP1vHyBOp8xJvzYo9kayJHqDFP5";
2
+ export declare const POLYMARKET_API_KEY = "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6";
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  export declare enum PaymentMethod {
4
4
  /** Moonpay - Credit / Debit Card **/
5
5
  CARD = "card",
6
- /** @deprecated Direct Transfer **/
6
+ /** Direct Transfer: used in polymarket **/
7
7
  TRANSFER = "transfer",
8
8
  /** Account Balance **/
9
9
  ACCOUNT_BALANCE = "balance",
@@ -29,4 +29,4 @@ export declare const QUOTE_CUSTOM_ERROR_STRING_INFO: {
29
29
  display: string;
30
30
  };
31
31
  };
32
- export declare function generateQuoteApiErrorForDisplay(errorMessage?: string): string;
32
+ export declare function generateQuoteApiErrorForDisplay(err: Error): string;
@@ -1,3 +1,4 @@
1
+ export declare const ANIMATION_DELAY = 75;
1
2
  /**
2
3
  * Logic for easier animations during navigation
3
4
  * @param callback - Called when utilizing the navigateTo function. Without providing it the navigateTo function will not work
@@ -1,4 +1,4 @@
1
- export declare function useCheckoutAccountBalanceTransfer(checkoutId: string | null): {
1
+ export declare function useCheckoutAccountBalanceTransfer(checkoutId: string): {
2
2
  generateCheckoutTransferOpItems: (toAddress: string, tokenAmount: number | string) => Promise<{
3
3
  rFunWallet: import("@funkit/core").FunWallet;
4
4
  rFunWalletAuth: import("@funkit/core").Auth;
@@ -1,11 +1,5 @@
1
- import { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
2
- export declare function getCheckoutType(checkoutItem: FunkitActiveCheckoutItem | null): {
3
- isCheckoutCrFlow: boolean;
4
- isCheckoutDirectCrFlow: boolean;
5
- isCheckoutPostActionRequired: boolean;
6
- };
7
- export declare function useCheckoutType(checkoutItem: FunkitActiveCheckoutItem | null): {
8
- isCheckoutCrFlow: boolean;
9
- isCheckoutDirectCrFlow: boolean;
10
- isCheckoutPostActionRequired: boolean;
11
- };
1
+ import { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
+ export declare function evaluateCheckoutGenerateActionsParams(config: FunkitCheckoutConfig): FunkitCheckoutActionParams[];
3
+ export declare function isCheckoutCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
4
+ export declare function isCheckoutDirectCrFlow(checkoutItem: FunkitActiveCheckoutItem): boolean;
5
+ export declare function isCheckoutPostActionRequired(config: FunkitCheckoutConfig): boolean;
@@ -5,6 +5,7 @@ import { PaymentMethodInfo } from '../consts/payment';
5
5
  import { MeshExchanges } from '../utils/mesh';
6
6
  export declare const getMeshExchangeIconMap: (size?: number) => Partial<Record<MeshExchanges, ReactNode>>;
7
7
  export declare const getSupportedExchanges: () => MeshExchanges[];
8
+ export declare function getExchangeName(exchange: MeshExchanges): string;
8
9
  export declare const useMeshExchanges: ({ fullInfo, iconSize, }: {
9
10
  fullInfo?: boolean;
10
11
  iconSize?: number;
package/dist/index.css CHANGED
@@ -6258,7 +6258,7 @@ input[type=number] {
6258
6258
  color: var(--rk-colors-secondaryText);
6259
6259
  }
6260
6260
 
6261
- /* vanilla-extract-css-ns:src/css/modalTransitionStyles.css.ts.vanilla.css?source=QGtleWZyYW1lcyBzdGdqeGwwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHNjYWxlKDAuNyk7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiBzY2FsZSgxKTsKICAgIG9wYWNpdHk6IDE7CiAgfQp9CkBrZXlmcmFtZXMgc3RnanhsMSB7CiAgMCUgewogICAgdHJhbnNmb3JtOiBzY2FsZSgxKTsKICAgIG9wYWNpdHk6IDE7CiAgfQogIDkwJSB7CiAgICB0cmFuc2Zvcm06IHNjYWxlKDAuOCk7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiBzY2FsZSgwLjUpOwogICAgb3BhY2l0eTogMDsKICB9Cn0KLnN0Z2p4bDIgewogIGFuaW1hdGlvbi1kdXJhdGlvbjogMTUwbXM7CiAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyOwogIGFuaW1hdGlvbi1maWxsLW1vZGU6IGZvcndhcmRzOwogIGFuaW1hdGlvbi1uYW1lOiBzdGdqeGwwOwp9Ci5zdGdqeGwzIHsKICBhbmltYXRpb24tZHVyYXRpb246IDE1MG1zOwogIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICBhbmltYXRpb24tZmlsbC1tb2RlOiBmb3J3YXJkczsKICBhbmltYXRpb24tbmFtZTogc3RnanhsMTsKfQ== */
6261
+ /* vanilla-extract-css-ns:src/css/modalTransitionStyles.css.ts.vanilla.css?source=QGtleWZyYW1lcyBzdGdqeGwwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHNjYWxlKDAuNyk7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiBzY2FsZSgxKTsKICAgIG9wYWNpdHk6IDE7CiAgfQp9CkBrZXlmcmFtZXMgc3RnanhsMSB7CiAgMCUgewogICAgdHJhbnNmb3JtOiBzY2FsZSgxKTsKICAgIG9wYWNpdHk6IDE7CiAgfQogIDkwJSB7CiAgICB0cmFuc2Zvcm06IHNjYWxlKDAuOCk7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiBzY2FsZSgwLjUpOwogICAgb3BhY2l0eTogMDsKICB9Cn0KLnN0Z2p4bDIgewogIGFuaW1hdGlvbi1kdXJhdGlvbjogNzVtczsKICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgYW5pbWF0aW9uLWZpbGwtbW9kZTogZm9yd2FyZHM7CiAgYW5pbWF0aW9uLW5hbWU6IHN0Z2p4bDA7Cn0KLnN0Z2p4bDMgewogIGFuaW1hdGlvbi1kdXJhdGlvbjogNzVtczsKICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgYW5pbWF0aW9uLWZpbGwtbW9kZTogZm9yd2FyZHM7CiAgYW5pbWF0aW9uLW5hbWU6IHN0Z2p4bDE7Cn0= */
6262
6262
  @keyframes stgjxl0 {
6263
6263
  0% {
6264
6264
  transform: scale(0.7);
@@ -6284,13 +6284,13 @@ input[type=number] {
6284
6284
  }
6285
6285
  }
6286
6286
  [data-rk] .stgjxl2 {
6287
- animation-duration: 150ms;
6287
+ animation-duration: 75ms;
6288
6288
  animation-timing-function: linear;
6289
6289
  animation-fill-mode: forwards;
6290
6290
  animation-name: stgjxl0;
6291
6291
  }
6292
6292
  [data-rk] .stgjxl3 {
6293
- animation-duration: 150ms;
6293
+ animation-duration: 75ms;
6294
6294
  animation-timing-function: linear;
6295
6295
  animation-fill-mode: forwards;
6296
6296
  animation-name: stgjxl1;
@@ -6530,6 +6530,18 @@ input[type=number] {
6530
6530
  outline: none;
6531
6531
  }
6532
6532
 
6533
+ /* src/components/FunTransactionSummary/FunTxSummaryComponents.css */
6534
+ .fun-container-content-expanded {
6535
+ transition: all 0.5s ease-in-out;
6536
+ max-height: 250px;
6537
+ overflow: hidden;
6538
+ }
6539
+ .fun-container-content-collapsed {
6540
+ max-height: 0px;
6541
+ transition: all 0.4s ease-out;
6542
+ overflow: hidden;
6543
+ }
6544
+
6533
6545
  /* vanilla-extract-css-ns:src/components/FunSelectBrokerage/FunSelectBrokerage.css.ts.vanilla.css?source=Ll8xd2h1bGR2MCB7CiAgbWF4LWhlaWdodDogMjIwcHg7CiAgb3ZlcmZsb3cteTogYXV0bzsKICBvdmVyZmxvdy14OiBoaWRkZW47Cn0= */
6534
6546
  [data-rk] ._1whuldv0 {
6535
6547
  max-height: 220px;
@@ -6550,15 +6562,3 @@ input[type=number] {
6550
6562
  display: flex;
6551
6563
  flex: 1;
6552
6564
  }
6553
-
6554
- /* src/components/FunTransactionSummary/FunTxSummaryComponents.css */
6555
- .fun-container-content-expanded {
6556
- transition: all 0.5s ease-in-out;
6557
- max-height: 250px;
6558
- overflow: hidden;
6559
- }
6560
- .fun-container-content-collapsed {
6561
- max-height: 0px;
6562
- transition: all 0.4s ease-out;
6563
- overflow: hidden;
6564
- }
package/dist/index.d.ts CHANGED
@@ -13,8 +13,8 @@ export type { DisclaimerComponent } from './providers/AppContext';
13
13
  export type { AuthenticationConfig, AuthenticationStatus, } from './providers/AuthenticationContext';
14
14
  export { createAuthenticationAdapter, FunkitConnectAuthenticationProvider, } from './providers/AuthenticationContext';
15
15
  export type { AvatarComponent } from './providers/AvatarContext';
16
- export type { FunkitCheckoutConfig } from './providers/FunkitCheckoutContext';
17
- export { useFunkitCheckout } from './providers/FunkitCheckoutContext';
16
+ export type { FunkitCheckoutActionParams, FunkitCheckoutConfig, } from './providers/FunkitCheckoutContext';
17
+ export { useCheckoutListenerByCheckoutId, useCheckoutsListenerByUserId, useFunkitCheckout, } from './providers/FunkitCheckoutContext';
18
18
  export type { FunkitConfig } from './providers/FunkitConfigContext';
19
19
  export type { FunkitConnectChain as Chain } from './providers/FunkitConnectChainContext';
20
20
  export type { Theme } from './providers/FunkitProvider';
@@ -23,7 +23,9 @@ export { useActiveTheme } from './providers/FunkitThemeProvider';
23
23
  export { useAccountModal, useChainModal, useConnectModal, } from './providers/ModalContext';
24
24
  export { darkTheme } from './themes/darkTheme';
25
25
  export { lightTheme } from './themes/lightTheme';
26
+ export type { PurifiedCheckoutHistoryItem } from './utils/purifyCheckoutHistoryItem';
26
27
  export { getDefaultWallets } from './wallets/getDefaultWallets';
27
28
  export type { FunkitConnectWalletConnectParameters, Wallet, WalletDetailsParams, WalletList, } from './wallets/Wallet';
28
29
  export { useFunkitAccount, useFunkitDisconnect, useFunkitSwitchChains, } from './providers/GeneralWalletProvider';
30
+ export { SelectedHomeTab } from './modals/ProfileDetails/FunProfileViews/Home';
29
31
  export { isDydxAddress } from './utils/isDydxAddress';