@funkit/connect 3.4.3 → 3.4.5

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 (59) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/FunAssetAvatar/FunAssetAvatar.css.d.ts +0 -1
  3. package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
  4. package/dist/components/FunDivider/FunDivider.d.ts +1 -2
  5. package/dist/components/FunInput/FunInput.d.ts +1 -2
  6. package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -5
  7. package/dist/components/FunNotification/FunNotification.d.ts +4 -0
  8. package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -15
  9. package/dist/components/FunSelect/FunSelect.d.ts +3 -4
  10. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +4 -3
  11. package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +7 -2
  12. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +2 -2
  13. package/dist/consts/funkit.d.ts +1 -0
  14. package/dist/domains/asset.d.ts +2 -0
  15. package/dist/domains/checkoutFees.d.ts +2 -1
  16. package/dist/{hooks/useCheckoutStateBooleans.d.ts → domains/checkoutState.d.ts} +1 -1
  17. package/dist/domains/quote.d.ts +6 -4
  18. package/dist/hooks/useAutoClearState.d.ts +4 -0
  19. package/dist/hooks/useCountdown.d.ts +8 -0
  20. package/dist/hooks/useMesh.d.ts +1 -1
  21. package/dist/hooks/useWalletAssets.d.ts +3 -0
  22. package/dist/index.css +66 -52
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +3480 -3653
  25. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +17 -0
  26. package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +28 -0
  27. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +22 -0
  28. package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +8 -0
  29. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +5 -3
  30. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +5 -2
  31. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +5 -2
  32. package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +7 -0
  33. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
  34. package/dist/modals/CheckoutModal/InputAmount/useCheckoutQuote.d.ts +0 -1
  35. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -7
  36. package/dist/modals/CheckoutModal/SourceChange.d.ts +1 -1
  37. package/dist/modals/CheckoutModal/TransferToken.d.ts +2 -4
  38. package/dist/modals/CheckoutModal/stepTransition.d.ts +4 -7
  39. package/dist/modals/CheckoutModal/useCheckoutQuote.d.ts +7 -0
  40. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +9 -0
  41. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
  42. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +1 -1
  43. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +0 -2
  44. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +7 -2
  45. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +1 -0
  46. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +1 -1
  47. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +5 -2
  48. package/dist/providers/FunkitCheckoutContext.d.ts +1 -1
  49. package/dist/providers/GeneralWalletProvider.d.ts +11 -10
  50. package/dist/utils/aborts.d.ts +1 -0
  51. package/dist/utils/assets.d.ts +10 -9
  52. package/dist/utils/combineChainSymbolOrAddress.d.ts +1 -1
  53. package/dist/utils/deepMerge.d.ts +5 -0
  54. package/dist/utils/flags/config.d.ts +4 -1
  55. package/dist/utils/payment.d.ts +3 -3
  56. package/dist/wallets/walletConnectors/index.js +51 -51
  57. package/package.json +1 -1
  58. package/dist/components/FunPayments/FunPaymentMeshType.d.ts +0 -10
  59. package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +0 -24
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 3.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 81ea150: chore: copy tweaks
8
+ - bccd3bf: feat: add pure side effect free quote
9
+ - fd02d7a: fix: ensure compared amount is rounded
10
+ - bccd3bf: feat: update loading state visuals of input screen
11
+ - d1d7eb8: refactor: legalese copy changes
12
+ - 60ae0c4: feat: update condition showing wallet connect option in sources
13
+ - b34ccdd: fix: minimum order copy
14
+ - a12d187: feat: update account modal for dydx
15
+ - 30a2877: feat: move checkout limit to new max_checkout_usd flag
16
+ - ba157d6: fix: remove custom margins when tagline not in use
17
+ - b703b22: fix: show mesh execution errors where possible
18
+ - 4069475: feat: hide You will pay when source and target assets are both stablecoins
19
+ - bb7d1f9: feat: remove explicit continue from exchange selection screen
20
+ - bccd3bf: feat: simplify login type checking
21
+ - a8fa2ba: feat: merge mesh fees
22
+ - 049f852: fix: fix native token normalization check
23
+ - 177e40b: feat: remove select payment method page
24
+ - 4d3c747: fix: unify border color for sections inside checkout history page
25
+
26
+ ## 3.4.4
27
+
28
+ ### Patch Changes
29
+
30
+ - a47f50d: feat(connect): hide low balance assets on homepage
31
+ - 65e7b2a: feat(connect): expose useFunkitUserInfo hook
32
+ - 9f5c50e: fix(connect): fix customer callbacks
33
+
3
34
  ## 3.4.3
4
35
 
5
36
  ### Patch Changes
@@ -1,3 +1,2 @@
1
1
  export declare const containerStyle: string;
2
- export declare const assetContainerStyle: string;
3
2
  export declare const chainContainerStyle: string;
@@ -10,5 +10,6 @@ export interface FunCountdownProps {
10
10
  onCountdownLastSecond?: () => void;
11
11
  children?: ReactNode | ((remainingSeconds: number) => ReactNode);
12
12
  isHidden?: boolean;
13
+ showPending?: boolean;
13
14
  }
14
- export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, onBeforeCountdownEnds, onBeforeCountdownEndsSeconds, onCountdownLastSecond, strokeWidth, isHidden, children, }: FunCountdownProps) => React.JSX.Element | null;
15
+ export declare const FunCountdown: ({ countdownSeconds, initialRemainingSeconds, counterSize, onCountdownEnded, onBeforeCountdownEnds, onBeforeCountdownEndsSeconds, onCountdownLastSecond, strokeWidth, isHidden, children, showPending, }: FunCountdownProps) => React.JSX.Element | null;
@@ -4,8 +4,7 @@ interface FunDividerProps {
4
4
  marginTop?: BoxProps['marginTop'];
5
5
  marginBottom?: BoxProps['marginBottom'];
6
6
  borderColor?: BoxProps['borderColor'];
7
- transparent?: boolean;
8
7
  label?: string;
9
8
  }
10
- export declare function FunDivider({ marginTop, marginBottom, transparent, borderColor, label, }: FunDividerProps): React.JSX.Element;
9
+ export declare function FunDivider({ marginTop, marginBottom, borderColor, label, }: FunDividerProps): React.JSX.Element;
11
10
  export {};
@@ -17,7 +17,6 @@ export interface FunInputProps<T = HTMLInputElement> {
17
17
  inputProps?: React.HTMLProps<T> & {
18
18
  type?: HTMLInputTypeAttribute;
19
19
  };
20
- ref?: any;
21
20
  error?: string | boolean;
22
21
  alwaysFocused?: boolean;
23
22
  textColor?: BoxProps['color'];
@@ -26,4 +25,4 @@ export interface FunInputProps<T = HTMLInputElement> {
26
25
  overrideBackground?: BoxProps['background'];
27
26
  borderRadius?: BoxProps['borderRadius'];
28
27
  }
29
- export declare const FunInput: React.ForwardRefExoticComponent<Omit<FunInputProps<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
28
+ export declare const FunInput: React.ForwardRefExoticComponent<FunInputProps<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
@@ -1,7 +1,3 @@
1
1
  import React from 'react';
2
2
  import { FunInputProps } from './FunInput';
3
- interface FunTextAreaInputProps extends FunInputProps<HTMLTextAreaElement> {
4
- hasBackground?: boolean;
5
- }
6
- export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textColor, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, }: FunTextAreaInputProps): React.JSX.Element;
7
- export {};
3
+ export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textColor, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, }: FunInputProps<HTMLTextAreaElement>): React.JSX.Element;
@@ -12,6 +12,10 @@ interface FunNotificationProps {
12
12
  isVisible?: boolean;
13
13
  }
14
14
  export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint';
15
+ export interface ErrorNotification {
16
+ message: ReactNode;
17
+ type: FunNotificationType;
18
+ }
15
19
  /**
16
20
  * A notification/message component with height resizing animation.
17
21
  * Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering.
@@ -1,20 +1,21 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { PaymentMethod, PaymentMethodInfo } from '../../domains/paymentMethods';
3
- import { SelectMethodPayloadData } from '../../modals/CheckoutModal/SelectPaymentMethod';
4
3
  import { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
5
4
  import { FunkitTextCustomizationsConfig, FunkitUiCustomRecipientConfig } from '../../providers/FunkitConfigContext';
6
5
  export declare function ConnectWalletItem({ isClickable, }: {
7
6
  isClickable?: boolean;
8
7
  }): React.JSX.Element;
9
- export declare function AddPaymentMethodItem({ paymentMethod, isClickable, isActive, onClick, isSource, dynamicLimit, customValueIcon, }: {
10
- paymentMethod: PaymentMethod;
8
+ type BasePaymentMethodItemProps = {
11
9
  isActive: boolean;
10
+ onClick: () => void;
12
11
  isClickable?: boolean;
13
- onClick?: () => void;
14
12
  isSource?: boolean;
15
- dynamicLimit?: string;
16
13
  customValueIcon?: ReactNode;
17
- }): React.JSX.Element;
14
+ };
15
+ export declare function AddPaymentMethodItem({ paymentMethod, isClickable, isActive, onClick, isSource, dynamicLimit, customValueIcon, }: BasePaymentMethodItemProps & {
16
+ paymentMethod: PaymentMethod;
17
+ dynamicLimit?: string;
18
+ }): React.JSX.Element | undefined;
18
19
  interface PaymentMethodSummaryProps {
19
20
  paymentMethodInfo: PaymentMethodInfo;
20
21
  walletAddress: string | undefined;
@@ -31,13 +32,4 @@ interface PaymentAmountSummaryProps {
31
32
  textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
32
33
  }
33
34
  export declare function PaymentAmountSummary({ isLoading, targetChainId, checkoutItem, textCustomizations, }: PaymentAmountSummaryProps): React.JSX.Element;
34
- /**
35
- * Handle selection and adding of payment methods
36
- */
37
- export declare function FunPaymentMethods({ onSelect, isDisabled, isLoadingGeoCheck, onCloseWrapper, }: {
38
- onSelect: (selectMethodData: SelectMethodPayloadData) => void;
39
- isDisabled?: boolean;
40
- isLoadingGeoCheck: boolean;
41
- onCloseWrapper: () => void;
42
- }): React.JSX.Element;
43
35
  export {};
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
- export interface FunSelectOption {
3
- value: string;
2
+ export interface FunSelectOption<T = string> {
3
+ value: T;
4
4
  label: ReactNode;
5
5
  isDisabled: boolean;
6
6
  }
@@ -8,7 +8,6 @@ interface FunSelectProps {
8
8
  initValue: string;
9
9
  options: FunSelectOption[];
10
10
  onChange: (newValue: string) => void;
11
- label: string;
12
11
  }
13
- export declare const FunSelect: ({ initValue, options, onChange, label, }: FunSelectProps) => React.JSX.Element;
12
+ export declare const FunSelect: ({ initValue, options, onChange }: FunSelectProps) => React.JSX.Element;
14
13
  export {};
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
+ import { MeshExchanges } from '~/consts/mesh';
2
3
  import { FunSelectOption } from '../FunSelect/FunSelect';
3
4
  interface FunSelectBrokerageProps {
4
- handleSelect: (newValue: FunSelectOption['value']) => void;
5
- options: FunSelectOption[];
5
+ onSelect: (value: MeshExchanges) => void;
6
+ options: FunSelectOption<MeshExchanges>[];
6
7
  selectedValue: FunSelectOption['value'];
7
8
  }
8
- export declare function FunSelectBrokerage({ handleSelect, options, selectedValue, }: FunSelectBrokerageProps): React.JSX.Element;
9
+ export declare function FunSelectBrokerage({ onSelect, options, selectedValue, }: FunSelectBrokerageProps): React.JSX.Element;
9
10
  export {};
@@ -1,8 +1,13 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- export type FunSkeletonBlockProps = Pick<BoxProps, 'marginBottom' | 'marginTop' | 'style'> & {
3
+ type FunSkeletonBlockProps = {
4
+ borderRadius?: BoxProps['borderRadius'];
5
+ marginBottom?: BoxProps['marginBottom'];
6
+ marginTop?: BoxProps['marginTop'];
7
+ style?: BoxProps['style'];
4
8
  height: BoxProps['height'];
5
9
  /** Defaults to full width */
6
10
  width?: BoxProps['width'];
7
11
  };
8
- export declare function FunSkeletonBlock({ width, ...props }: FunSkeletonBlockProps): React.JSX.Element;
12
+ export declare function FunSkeletonBlock({ width, borderRadius, ...props }: FunSkeletonBlockProps): React.JSX.Element;
13
+ export {};
@@ -1,7 +1,7 @@
1
1
  import './FunTxSummaryComponents.css';
2
- import React, { PropsWithChildren, ReactNode } from 'react';
2
+ import React, { ReactNode } from 'react';
3
3
  import { BoxProps } from '../Box/Box';
4
- export declare function FunTxSummaryBox({ children }: PropsWithChildren): React.JSX.Element;
4
+ export declare function FunTxSummaryBox({ children, ...otherProps }: BoxProps): React.JSX.Element;
5
5
  export declare function FunTxSummaryLineItem({ children, ...otherProps }: BoxProps): React.JSX.Element;
6
6
  export declare function FunTxSummaryLineItemCollapsibleTrigger({ children, isDisabled, onClick, }: {
7
7
  children: ReactNode;
@@ -11,6 +11,7 @@ export declare const FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
11
11
  export declare const RESERVED_GROUP_NAME = "funkit-web2";
12
12
  export declare const DEFAULT_FUNWALLET_INDEX = 0;
13
13
  export declare const FUN_WORKER_EOA_ADDR = "0x61d048E5bECBd111c5D1e9BfFa1e284EBcb230Cc";
14
+ export declare const FUN_ORG_NAME = "Fun.xyz";
14
15
  export declare const FROM_PROGRESS_CHECKOUT_STATES: CheckoutState[];
15
16
  export declare const TO_PROGRESS_CHECKOUT_STATES: CheckoutState[];
16
17
  export declare const IN_PROGRESS_CHECKOUT_STATES: CheckoutState[];
@@ -0,0 +1,2 @@
1
+ import { Address } from 'viem';
2
+ export declare function isNativeTokenAddress(address: Address): boolean;
@@ -1,5 +1,6 @@
1
1
  import { CheckoutQuoteResponse } from '@funkit/api-base';
2
2
  import type { Config } from 'wagmi';
3
+ import { LoginType } from '~/providers/GeneralWalletProvider';
3
4
  import { PaymentMethod, PaymentMethodInfo } from '../domains/paymentMethods';
4
5
  import { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
5
6
  interface BaseCheckoutFees {
@@ -34,7 +35,7 @@ interface EvaluateFeeBreakdownItem {
34
35
  newPaymentMethodInfo: PaymentMethodInfo;
35
36
  wagmiConfig: Config;
36
37
  apiKey: string;
37
- isWeb3Login: boolean;
38
+ loginType: LoginType;
38
39
  }
39
40
  export declare function evaluateFeeBreakdown(evalItem: EvaluateFeeBreakdownItem): Promise<CheckoutFees>;
40
41
  export {};
@@ -9,5 +9,5 @@ type CheckoutStateBooleans = {
9
9
  isTerminal: boolean;
10
10
  status: CheckoutStatus;
11
11
  };
12
- export declare function useCheckoutStateBooleans(checkoutState: CheckoutState): CheckoutStateBooleans;
12
+ export declare function getCheckoutStateBooleans(checkoutState: CheckoutState): CheckoutStateBooleans;
13
13
  export {};
@@ -2,17 +2,19 @@ import { CheckoutQuoteResponse } from '@funkit/api-base';
2
2
  import { Address } from 'viem';
3
3
  import { Config } from 'wagmi';
4
4
  import { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
5
+ import { LoginType } from '~/providers/GeneralWalletProvider';
5
6
  import { CheckoutFees } from './checkoutFees';
6
7
  import { PaymentMethodInfo } from './paymentMethods';
7
8
  export type FunkitCheckoutQuoteResult = {
8
9
  baseQuote: CheckoutQuoteResponse;
9
10
  finalTimeEstimationMs: number;
10
11
  finalPaymentTokenAmount: string;
12
+ finalPaymentFeeUsd: string;
11
13
  finalTotalUsd: string;
12
14
  finalFeesBreakdown: CheckoutFees;
13
15
  };
14
16
  export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, userId: string, walletAddress: Address, apiKey: string, sponsorInitialTransferGasLimit: number, wagmiConfig: Config): Promise<CheckoutQuoteResponse>;
15
- export declare function getQuoteFinalEstimation(baseQuote: CheckoutQuoteResponse, checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, wagmiConfig: Config, apiKey: string, isWeb3Login: boolean): Promise<FunkitCheckoutQuoteResult>;
17
+ export declare function getQuoteFinalEstimation(baseQuote: CheckoutQuoteResponse, checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, wagmiConfig: Config, apiKey: string, loginType: LoginType): Promise<FunkitCheckoutQuoteResult>;
16
18
  export declare function getAvailableAssetAmount(checkoutItem: FunkitActiveCheckoutItem, newPaymentMethodInfo: PaymentMethodInfo, finalEstimation: FunkitCheckoutQuoteResult, wagmiConfig: Config, walletAddress: Address): Promise<number | undefined>;
17
19
  export interface CheckoutQuoteParams {
18
20
  checkoutItem: FunkitActiveCheckoutItem;
@@ -22,10 +24,10 @@ export interface CheckoutQuoteParams {
22
24
  sponsorInitialTransferGasLimit: number;
23
25
  newPaymentMethodInfo: PaymentMethodInfo;
24
26
  wagmiConfig: Config;
25
- isWeb3Login: boolean;
27
+ loginType: LoginType;
26
28
  }
27
- export declare function getQuoteAndEstimation({ checkoutItem, userId, walletAddress, apiKey, sponsorInitialTransferGasLimit, newPaymentMethodInfo, wagmiConfig, isWeb3Login, }: CheckoutQuoteParams): Promise<{
29
+ export declare function getQuoteAndEstimation({ checkoutItem, userId, walletAddress, apiKey, sponsorInitialTransferGasLimit, newPaymentMethodInfo, wagmiConfig, loginType, }: CheckoutQuoteParams): Promise<{
28
30
  baseQuote: CheckoutQuoteResponse;
29
31
  finalEstimation: FunkitCheckoutQuoteResult;
30
- avialableAssetAmount: number | undefined;
32
+ availableAssetAmount: number | undefined;
31
33
  }>;
@@ -0,0 +1,4 @@
1
+ export declare function useAutoClearState<T>(initialValue?: T | null): [
2
+ state: T | null,
3
+ setState: (newState: T | null, durationMs?: number) => void
4
+ ];
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { FunCountdownProps } from '~/components/FunCountdown/FunCountdown';
3
+ export interface UseCountdownResult {
4
+ countdown: ReactNode;
5
+ isLastSecond: boolean;
6
+ restartCountdown(): void;
7
+ }
8
+ export declare function useCountdown({ onCountdownEnded, ...props }: Omit<FunCountdownProps, 'onCountdownLastSecond'>): UseCountdownResult;
@@ -10,7 +10,7 @@ export declare const useMeshExchanges: ({ fullInfo, iconSize, }: {
10
10
  fullInfo?: boolean;
11
11
  iconSize?: number;
12
12
  }) => {
13
- options: FunSelectOption[];
13
+ options: FunSelectOption<MeshExchanges>[];
14
14
  };
15
15
  /**
16
16
  * Fetches mesh-related network information based on the active chain user is logged in on, given an exchange
@@ -1,5 +1,8 @@
1
1
  import { KnownAssetBalanceInfo } from '../providers/GeneralWalletProvider';
2
2
  export type WalletAssets = Record<string, KnownAssetBalanceInfo>;
3
+ /**
4
+ * Returns wallet assets that are above the {@link ASSETS_LOW_VALUE_THRESHOLD} threshold with their total USD value.
5
+ */
3
6
  export declare const useWalletAssets: ({ enableRefetchInterval, refetchOnMount, }: {
4
7
  enableRefetchInterval?: boolean | undefined;
5
8
  refetchOnMount?: boolean | undefined;
package/dist/index.css CHANGED
@@ -6174,7 +6174,7 @@
6174
6174
  }
6175
6175
  }
6176
6176
 
6177
- /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAE7VUy47jIBC8z1cg7SU5EDnOU+Symm+Y+wpDJyBjsKAd2zvKv4+wPVachzbSaE+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sumH73F9K+4/QQIuVwnpUPSo2G8HcdYevkCvpa0nosEAAA= */
6178
6178
  [data-rk] ._1pzt4231 {
6179
6179
  max-height: 525px;
6180
6180
  max-width: 100vw;
@@ -6184,7 +6184,7 @@
6184
6184
  max-height: 675px;
6185
6185
  }
6186
6186
  [data-rk] ._1pzt4231:has(#token-transfer-page) {
6187
- max-height: 725px;
6187
+ max-height: 825px;
6188
6188
  }
6189
6189
  [data-rk] ._1pzt4232 {
6190
6190
  min-width: 350px;
@@ -6452,10 +6452,11 @@
6452
6452
  animation: _1tyx5nu7 1s;
6453
6453
  }
6454
6454
 
6455
- /* vanilla-extract-css-ns:src/components/FunDivider/FunDivider.css.ts.vanilla.css?source=Ll8zZGtkc2MwIHsKICBib3JkZXItd2lkdGg6IDA7CiAgYm9yZGVyLXRvcC13aWR0aDogMXB4OwogIGZsZXg6IDE7Cn0= */
6455
+ /* vanilla-extract-css-ns:src/components/FunDivider/FunDivider.css.ts.vanilla.css?source=Ll8zZGtkc2MwIHsKICBib3JkZXItd2lkdGg6IDA7CiAgYm9yZGVyLXRvcC13aWR0aDogMXB4OwogIGJvcmRlci1zdHlsZTogc29saWQ7CiAgZmxleDogMTsKfQ== */
6456
6456
  [data-rk] ._3dkdsc0 {
6457
6457
  border-width: 0;
6458
6458
  border-top-width: 1px;
6459
+ border-style: solid;
6459
6460
  flex: 1;
6460
6461
  }
6461
6462
 
@@ -6497,6 +6498,48 @@
6497
6498
  animation-name: stgjxl1;
6498
6499
  }
6499
6500
 
6501
+ /* vanilla-extract-css-ns:src/components/FunSkeletonLoader/FunSkeletonLoader.css.ts.vanilla.css?source=QGtleWZyYW1lcyBkajB4NjAwIHsKICAwJSB7CiAgICBvcGFjaXR5OiAxOwogIH0KICAxMDAlIHsKICAgIG9wYWNpdHk6IDAuNTsKICB9Cn0KLmRqMHg2MDIgewogIGFuaW1hdGlvbi1kaXJlY3Rpb246IGFsdGVybmF0ZTsKICBhbmltYXRpb24tZHVyYXRpb246IDcwMG1zOwogIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICBhbmltYXRpb24taXRlcmF0aW9uLWNvdW50OiBpbmZpbml0ZTsKICBhbmltYXRpb24tZmlsbC1tb2RlOiBmb3J3YXJkczsKICBhbmltYXRpb24tbmFtZTogZGoweDYwMDsKfQouZGoweDYwMyB7CiAgZmxleDogMCAwIGF1dG87Cn0= */
6502
+ @keyframes dj0x600 {
6503
+ 0% {
6504
+ opacity: 1;
6505
+ }
6506
+ 100% {
6507
+ opacity: 0.5;
6508
+ }
6509
+ }
6510
+ [data-rk] .dj0x602 {
6511
+ animation-direction: alternate;
6512
+ animation-duration: 700ms;
6513
+ animation-timing-function: linear;
6514
+ animation-iteration-count: infinite;
6515
+ animation-fill-mode: forwards;
6516
+ animation-name: dj0x600;
6517
+ }
6518
+ [data-rk] .dj0x603 {
6519
+ flex: 0 0 auto;
6520
+ }
6521
+
6522
+ /* src/components/FunTransactionSummary/FunTxSummaryComponents.css */
6523
+ .fun-container-content-expanded {
6524
+ transition: all 0.5s ease-in-out;
6525
+ max-height: 250px;
6526
+ overflow: hidden;
6527
+ }
6528
+ .fun-container-content-collapsed {
6529
+ max-height: 0px;
6530
+ transition: all 0.4s ease-out;
6531
+ overflow: hidden;
6532
+ }
6533
+ .fun-container-fee-line-show {
6534
+ transition: all 0.2s linear;
6535
+ transition-delay: 0.2s;
6536
+ opacity: 1;
6537
+ }
6538
+ .fun-container-fee-line-hide {
6539
+ transition: all 0.2s linear;
6540
+ opacity: 0;
6541
+ }
6542
+
6500
6543
  /* src/components/FunInput/FunInputBase.css */
6501
6544
  input::-webkit-outer-spin-button,
6502
6545
  input::-webkit-inner-spin-button {
@@ -6568,15 +6611,13 @@ input[type=number] {
6568
6611
  flex: 1;
6569
6612
  }
6570
6613
 
6571
- /* vanilla-extract-css-ns:src/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.ts.vanilla.css?source=Ll84djN6c3owIHsKICBtYXgtaGVpZ2h0OiAyNTBweDsKICBvdmVyZmxvdzogaGlkZGVuOwp9Ci5fOHYzenN6MSB7CiAgdHJhbnNpdGlvbjogYWxsIDAuNXMgZWFzZS1pbi1vdXQ7Cn0KLl84djN6c3oyIHsKICB0cmFuc2l0aW9uOiBhbGwgNDAwbXMgZWFzZS1vdXQ7CiAgbWF4LWhlaWdodDogMDsKICBvdmVyZmxvdzogaGlkZGVuOwp9 */
6614
+ /* vanilla-extract-css-ns:src/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.ts.vanilla.css?source=Ll84djN6c3owIHsKICB0cmFuc2l0aW9uOiBhbGwgMC41cyBlYXNlLWluLW91dDsKICBtYXgtaGVpZ2h0OiAyNTBweDsKICBvdmVyZmxvdzogaGlkZGVuOwp9Ci5fOHYzenN6MSB7CiAgdHJhbnNpdGlvbjogYWxsIDQwMG1zIGVhc2Utb3V0OwogIG1heC1oZWlnaHQ6IDA7CiAgb3ZlcmZsb3c6IGhpZGRlbjsKfQ== */
6572
6615
  [data-rk] ._8v3zsz0 {
6616
+ transition: all 0.5s ease-in-out;
6573
6617
  max-height: 250px;
6574
6618
  overflow: hidden;
6575
6619
  }
6576
6620
  [data-rk] ._8v3zsz1 {
6577
- transition: all 0.5s ease-in-out;
6578
- }
6579
- [data-rk] ._8v3zsz2 {
6580
6621
  transition: all 400ms ease-out;
6581
6622
  max-height: 0;
6582
6623
  overflow: hidden;
@@ -6631,7 +6672,7 @@ input[type=number] {
6631
6672
  transparent 10%);
6632
6673
  }
6633
6674
 
6634
- /* vanilla-extract-css-ns:src/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.ts.vanilla.css?source=Ll8yaTl6eTAgewogIG1hcmdpbi10b3A6IC0zMHB4OwogIG1hcmdpbi1ib3R0b206IC0xMHB4OwogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICBoZWlnaHQ6I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ogIG1hcmdpbi1ib3R0b206IC0xMHB4OwogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICBoZWlnaHQ6IDEyMHB4OwogIHdpZHRoOiAxODBweDsKICBiYWNrZ3JvdW5kOiByYWRpYWwtZ3JhZGllbnQoZWxsaXBzZSBjbG9zZXN0LXNpZGUsIHJnYmEoMzcsIDE5MSwgOTksIDAuMikgMCUsIHJnYmEoNTQsIDIyNSwgMTQzLCAwLjA0KSA4MCUsIHRyYW5zcGFyZW50KTsKfQouXzJpOXp5MiB7CiAgbWFyZ2luLXRvcDogLTMwcHg7CiAgbWFyZ2luLWJvdHRvbTogLTEwcHg7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogY2VudGVyOwogIGhlaWdodDogMTIwcHg7CiAgd2lkdGg6IDE4MHB4OwogIGJhY2tncm91bmQ6IHJhZGlhbC1ncmFkaWVudChlbGxpcHNlIGNsb3Nlc3Qtc2lkZSwgcmdiYSgyMTEsMjExLDIxMSwwLjE4KSAwJSwgcmdiYSgxNzYsMTc2LDE3NiwwLjA0KSA4MCUsIHRyYW5zcGFyZW50KTsKfQ== */
6635
6676
  [data-rk] ._2i9zy0 {
6636
6677
  margin-top: -30px;
6637
6678
  margin-bottom: -10px;
@@ -6662,6 +6703,21 @@ input[type=number] {
6662
6703
  rgba(54, 225, 143, 0.04) 80%,
6663
6704
  transparent);
6664
6705
  }
6706
+ [data-rk] ._2i9zy2 {
6707
+ margin-top: -30px;
6708
+ margin-bottom: -10px;
6709
+ display: flex;
6710
+ align-items: center;
6711
+ justify-content: center;
6712
+ height: 120px;
6713
+ width: 180px;
6714
+ background:
6715
+ radial-gradient(
6716
+ ellipse closest-side,
6717
+ rgba(211, 211, 211, 0.18) 0%,
6718
+ rgba(176, 176, 176, 0.04) 80%,
6719
+ transparent);
6720
+ }
6665
6721
 
6666
6722
  /* src/components/FunNotification/FunNotification.css */
6667
6723
  .fun-notification-expanded {
@@ -6677,11 +6733,11 @@ input[type=number] {
6677
6733
  overflow: hidden;
6678
6734
  }
6679
6735
 
6680
- /* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMyB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJvdHRvbTogMDsKICByaWdodDogMDsKfQ== */
6736
+ /* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMiB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJvdHRvbTogMDsKICByaWdodDogMDsKfQ== */
6681
6737
  [data-rk] .uwrdc20 {
6682
6738
  position: relative;
6683
6739
  }
6684
- [data-rk] .uwrdc23 {
6740
+ [data-rk] .uwrdc22 {
6685
6741
  position: absolute;
6686
6742
  bottom: 0;
6687
6743
  right: 0;
@@ -6789,27 +6845,6 @@ input[type=number] {
6789
6845
  animation-name: _26hmws3;
6790
6846
  }
6791
6847
 
6792
- /* vanilla-extract-css-ns:src/components/FunSkeletonLoader/FunSkeletonLoader.css.ts.vanilla.css?source=QGtleWZyYW1lcyBkajB4NjAwIHsKICAwJSB7CiAgICBvcGFjaXR5OiAxOwogIH0KICAxMDAlIHsKICAgIG9wYWNpdHk6IDAuNTsKICB9Cn0KLmRqMHg2MDIgewogIGFuaW1hdGlvbi1kaXJlY3Rpb246IGFsdGVybmF0ZTsKICBhbmltYXRpb24tZHVyYXRpb246IDcwMG1zOwogIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICBhbmltYXRpb24taXRlcmF0aW9uLWNvdW50OiBpbmZpbml0ZTsKICBhbmltYXRpb24tZmlsbC1tb2RlOiBmb3J3YXJkczsKICBhbmltYXRpb24tbmFtZTogZGoweDYwMDsKfQouZGoweDYwMyB7CiAgZmxleDogMCAwIGF1dG87Cn0= */
6793
- @keyframes dj0x600 {
6794
- 0% {
6795
- opacity: 1;
6796
- }
6797
- 100% {
6798
- opacity: 0.5;
6799
- }
6800
- }
6801
- [data-rk] .dj0x602 {
6802
- animation-direction: alternate;
6803
- animation-duration: 700ms;
6804
- animation-timing-function: linear;
6805
- animation-iteration-count: infinite;
6806
- animation-fill-mode: forwards;
6807
- animation-name: dj0x600;
6808
- }
6809
- [data-rk] .dj0x603 {
6810
- flex: 0 0 auto;
6811
- }
6812
-
6813
6848
  /* vanilla-extract-css-ns:src/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.ts.vanilla.css?source=LnVrY3Q0dDEgewogIG91dGxpbmU6IG5vbmU7Cn0KLnVrY3Q0dDE6Zm9jdXMgewogIG91dGxpbmU6IG5vbmU7Cn0= */
6814
6849
  [data-rk] .ukct4t1 {
6815
6850
  outline: none;
@@ -6857,27 +6892,6 @@ input[type=number] {
6857
6892
  outline: none;
6858
6893
  }
6859
6894
 
6860
- /* src/components/FunTransactionSummary/FunTxSummaryComponents.css */
6861
- .fun-container-content-expanded {
6862
- transition: all 0.5s ease-in-out;
6863
- max-height: 250px;
6864
- overflow: hidden;
6865
- }
6866
- .fun-container-content-collapsed {
6867
- max-height: 0px;
6868
- transition: all 0.4s ease-out;
6869
- overflow: hidden;
6870
- }
6871
- .fun-container-fee-line-show {
6872
- transition: all 0.2s linear;
6873
- transition-delay: 0.2s;
6874
- opacity: 1;
6875
- }
6876
- .fun-container-fee-line-hide {
6877
- transition: all 0.2s linear;
6878
- opacity: 0;
6879
- }
6880
-
6881
6895
  /* vanilla-extract-css-ns:src/components/FunPayments/FunPaymentMoonpayType.css.ts.vanilla.css?source=Ll8xa21wZXlmMCB7CiAgaGVpZ2h0OiB1bnNldCAhaW1wb3J0YW50OwogIHdpZHRoOiB1bnNldCAhaW1wb3J0YW50OwogIGZsZXg6IDEgIWltcG9ydGFudDsKfQouXzFrbXBleWYwIGlmcmFtZSB7CiAgYm9yZGVyOiBub25lOwp9Ci5fMWttcGV5ZjEgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleDogMTsKfQ== */
6882
6896
  [data-rk] ._1kmpeyf0 {
6883
6897
  height: unset !important;
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export type { FunkitConnectChain as Chain } from './providers/FunkitConnectChain
21
21
  export type { Theme } from './providers/FunkitProvider';
22
22
  export { FunkitProvider } from './providers/FunkitProvider';
23
23
  export { useActiveTheme } from './providers/FunkitThemeProvider';
24
+ export { useFunkitUserInfo } from './providers/GeneralWalletProvider';
24
25
  export { useAccountModal, useChainModal, useConnectModal, } from './providers/ModalContext';
25
26
  export { darkTheme } from './themes/darkTheme';
26
27
  export { lightTheme } from './themes/lightTheme';