@funkit/connect 0.1.3 → 0.1.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 (48) hide show
  1. package/dist/{chunk-YPT63F4L.js → chunk-HS4VFULE.js} +2020 -1560
  2. package/dist/{chunk-IRPFZ4HK.js → chunk-LKGTFED3.js} +7 -6
  3. package/dist/{chunk-U7T37VQU.js → chunk-VGM7OU7P.js} +8 -3
  4. package/dist/{chunk-WSQKOMBH.js → chunk-WJHR5YCY.js} +2020 -1560
  5. package/dist/components/Box/Box.d.ts +7 -7
  6. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  7. package/dist/components/FunButton/FunIconButton.d.ts +2 -1
  8. package/dist/components/FunButton/FunLinkButton.d.ts +2 -1
  9. package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +2 -1
  10. package/dist/components/FunDivider/FunDivider.d.ts +2 -1
  11. package/dist/components/FunInput/FunInput.d.ts +3 -2
  12. package/dist/components/FunNotification/FunNotification.d.ts +3 -1
  13. package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
  14. package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +3 -2
  15. package/dist/components/FunPayments/FunPaymentSetup.d.ts +2 -1
  16. package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +2 -0
  17. package/dist/components/FunSelect/FunSelect.d.ts +2 -1
  18. package/dist/components/FunToast/FunToast.d.ts +3 -2
  19. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +17 -10
  20. package/dist/components/FunkitProvider/FunkitProvider.d.ts +3 -3
  21. package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +4 -0
  22. package/dist/components/Icons/NoAssetsFoundIcon.d.ts +4 -0
  23. package/dist/components/Icons/SearchIcon.d.ts +3 -1
  24. package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +1 -0
  25. package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +1 -0
  26. package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +2 -0
  27. package/dist/components/index.css +878 -807
  28. package/dist/components/index.js +2 -2
  29. package/dist/css/sprinkles.css.d.ts +21 -0
  30. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +11 -0
  31. package/dist/index.css +878 -807
  32. package/dist/index.d.ts +0 -1
  33. package/dist/index.js +5 -10
  34. package/dist/themes/baseTheme.d.ts +1 -1
  35. package/dist/themes/darkTheme.d.ts +4 -0
  36. package/dist/themes/darkTheme.js +1 -1
  37. package/dist/themes/lightTheme.d.ts +4 -0
  38. package/dist/themes/lightTheme.js +1 -1
  39. package/dist/utils/checkout.d.ts +29 -7
  40. package/dist/utils/formatNumber.d.ts +2 -0
  41. package/dist/wallets/walletConnectors/index.js +34 -34
  42. package/package.json +4 -4
  43. package/dist/chunk-FDHEHORE.js +0 -68
  44. package/dist/chunk-U7C2G4O4.js +0 -67
  45. package/dist/themes/funTheme.d.ts +0 -63
  46. package/dist/themes/funTheme.js +0 -8
  47. package/dist/themes/midnightTheme.d.ts +0 -59
  48. package/dist/themes/midnightTheme.js +0 -8
@@ -35,7 +35,7 @@ export declare const Box: React.ForwardRefExoticComponent<{
35
35
  readonly alignSelf?: "flex-start" | "flex-end" | "center" | undefined;
36
36
  readonly backgroundSize?: "cover" | undefined;
37
37
  readonly borderRadius?: "1" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "6" | "10" | "13" | "16" | "24" | "25%" | "full" | undefined;
38
- readonly borderStyle?: "solid" | "dotted" | undefined;
38
+ readonly borderStyle?: "solid" | "dotted" | "hidden" | undefined;
39
39
  readonly borderWidth?: "0" | "1" | "2" | "4" | undefined;
40
40
  readonly cursor?: "pointer" | undefined;
41
41
  readonly flexDirection?: "row" | "column" | undefined;
@@ -43,17 +43,17 @@ export declare const Box: React.ForwardRefExoticComponent<{
43
43
  readonly fontSize?: "10" | "13" | "16" | "12" | "14" | "18" | "20" | "23" | "57" | undefined;
44
44
  readonly fontWeight?: "regular" | "medium" | "semibold" | "bold" | "heavy" | undefined;
45
45
  readonly gap?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
46
- readonly height?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "600" | "half" | "max" | undefined;
46
+ readonly height?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
47
47
  readonly justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | undefined;
48
48
  readonly textAlign?: "left" | "inherit" | "center" | undefined;
49
49
  readonly marginBottom?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
50
50
  readonly marginLeft?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
51
51
  readonly marginRight?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
52
52
  readonly marginTop?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
53
- readonly minHeight?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "600" | "half" | "max" | undefined;
54
- readonly maxHeight?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "600" | "half" | "max" | undefined;
55
- readonly maxWidth?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "600" | "half" | "max" | undefined;
56
- readonly minWidth?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "600" | "half" | "max" | undefined;
53
+ readonly minHeight?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
54
+ readonly maxHeight?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
55
+ readonly maxWidth?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
56
+ readonly minWidth?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
57
57
  readonly overflow?: "hidden" | undefined;
58
58
  readonly paddingBottom?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
59
59
  readonly paddingLeft?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
@@ -63,7 +63,7 @@ export declare const Box: React.ForwardRefExoticComponent<{
63
63
  readonly right?: "0" | undefined;
64
64
  readonly transition?: "default" | "transform" | undefined;
65
65
  readonly userSelect?: "none" | undefined;
66
- readonly width?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "600" | "half" | "max" | undefined;
66
+ readonly width?: "1" | "2" | "24" | "full" | "4" | "12" | "20" | "400" | "8" | "28" | "30" | "32" | "36" | "44" | "34" | "40" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
67
67
  readonly backdropFilter?: "modalOverlay" | undefined;
68
68
  margin?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
69
69
  marginX?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "-1" | "5" | "8" | "28" | "30" | "32" | "36" | "44" | "64" | undefined;
@@ -1 +1,2 @@
1
1
  export declare const funLinkButtonStyle: string;
2
+ export declare const funIconButtonStyle: string;
@@ -3,9 +3,10 @@ import { BoxProps } from '../Box/Box';
3
3
  /**
4
4
  * Circular icon button with dynamic height and width
5
5
  */
6
- export declare const FunIconButton: ({ onClick, icon, size, showBorder, }: {
6
+ export declare const FunIconButton: ({ onClick, icon, size, showBorder, ariaLabel, }: {
7
7
  onClick: () => void;
8
8
  icon: React.ReactNode;
9
9
  size?: BoxProps['height'];
10
10
  showBorder?: boolean | undefined;
11
+ ariaLabel?: string | undefined;
11
12
  }) => React.JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TextProps } from '../Text/Text';
3
- export declare function FunLinkButton({ onClick, text, textProps, }: {
3
+ export declare function FunLinkButton({ onClick, text, textProps, hasPadding, }: {
4
4
  onClick: () => void;
5
5
  text: string;
6
6
  textProps?: Omit<TextProps, 'color'>;
7
+ hasPadding?: boolean;
7
8
  }): React.JSX.Element;
@@ -3,9 +3,10 @@ import { PaymentMethodInfo } from '../FunPayments/FunPaymentMethods';
3
3
  /**
4
4
  * Based on which payment method was selected, allow users to select which asset they want to fund
5
5
  */
6
- export declare function FunCheckoutSelectAssetStep({ checkoutId, selectedPaymentMethodInfo, onFinish, animateOut, }: {
6
+ export declare function FunCheckoutSelectAssetStep({ checkoutId, selectedPaymentMethodInfo, onFinish, isOnFinishLoading, animateOut, }: {
7
7
  checkoutId: string | null;
8
8
  selectedPaymentMethodInfo: PaymentMethodInfo | null;
9
+ isOnFinishLoading: boolean;
9
10
  onFinish: () => void;
10
11
  animateOut?: boolean;
11
12
  }): React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- export declare function FunDivider({ marginY, }: {
3
+ export declare function FunDivider({ marginY, transparent, }: {
4
4
  marginY?: BoxProps['margin'];
5
+ transparent?: boolean;
5
6
  }): React.JSX.Element;
@@ -3,6 +3,7 @@ import React, { HTMLInputTypeAttribute, ReactNode } from 'react';
3
3
  import { BoxProps } from '../Box/Box';
4
4
  export interface FunInputProps {
5
5
  prefix?: ReactNode;
6
+ prefixIcon?: 'SearchIcon' | '$';
6
7
  placeholder?: string;
7
8
  value: string | number | readonly string[] | undefined;
8
9
  label?: string;
@@ -18,11 +19,11 @@ export interface FunInputProps {
18
19
  [x: string]: any;
19
20
  };
20
21
  ref?: any;
21
- error?: boolean;
22
+ error?: string | boolean;
22
23
  focused?: boolean;
23
24
  textColor?: BoxProps['color'];
24
25
  inputClass?: string;
25
26
  }
26
- export declare function FunInputDefault({ prefix, placeholder, value, label, onChange, onKeyDown, onKeySubmit, onPaste, onMouseDown, hasBackground, textColor, inputStyle, inputProps, error, focused, inputClass, }: FunInputProps): React.JSX.Element;
27
+ export declare function FunInputDefault({ prefix, prefixIcon, placeholder, value, label, onChange, onKeyDown, onKeySubmit, onPaste, onMouseDown, hasBackground, textColor, inputStyle, inputProps, error, focused: _focused, inputClass, }: FunInputProps): React.JSX.Element;
27
28
  export declare const FunInputWithRef: React.ForwardRefExoticComponent<Omit<FunInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
28
29
  export declare function FunInput(props: FunInputProps): React.JSX.Element;
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
+ import { Box } from '../Box/Box';
2
3
  import { TextProps } from '../Text/Text';
3
4
  interface FunNotificationProps {
4
5
  type?: FunNotificationType;
5
6
  description: string;
6
7
  textProps?: Omit<TextProps, 'color'>;
8
+ containerProps?: React.ComponentProps<typeof Box>;
7
9
  }
8
10
  type FunNotificationType = 'default' | 'error';
9
- export declare function FunNotification({ type, description, textProps, }: FunNotificationProps): React.JSX.Element;
11
+ export declare function FunNotification({ type, description, textProps, containerProps, }: FunNotificationProps): React.JSX.Element;
10
12
  export {};
@@ -2,6 +2,7 @@ export declare const contentAnimationDefaults: {
2
2
  animationDuration: string;
3
3
  animationTimingFunction: string;
4
4
  animationFillMode: string;
5
+ height: string;
5
6
  };
6
7
  export declare const animateContentInClass: string;
7
8
  export declare const animateContentOutClass: string;
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { Address } from 'wagmi';
3
3
  import { PaymentFlow } from './FunPaymentMethods';
4
- export declare function FunPaymentMoonpayType({ paymentFlow, paymentAddress, depositToken, depositUsdAmount, onBackToHome, backAnimation, redirectToCheckoutHistory, }: {
4
+ export declare function FunPaymentMoonpayType({ paymentFlow, paymentAddress, depositToken, depositTokenChainId, depositTokenAmount, onBackToHome, backAnimation, redirectToCheckoutHistory, }: {
5
5
  paymentFlow: PaymentFlow;
6
6
  paymentAddress: Address;
7
7
  depositToken: string;
8
- depositUsdAmount: number;
8
+ depositTokenChainId: string;
9
+ depositTokenAmount: number;
9
10
  onBackToHome: () => void;
10
11
  backAnimation?: boolean;
11
12
  redirectToCheckoutHistory?: (depositAddress: string) => void;
@@ -9,9 +9,10 @@ interface FunPaymentSetupProps {
9
9
  onBackToHome: () => void;
10
10
  paymentAddress: Address;
11
11
  token: string;
12
+ tokenChainId: string;
12
13
  tokenAmountUsd: number;
13
14
  backAnimation?: boolean;
14
15
  redirectToCheckoutHistory?: (depositAddress: string) => void;
15
16
  }
16
- export declare function FunPaymentSetup({ paymentFlow, paymentAddress, paymentMethod, onSetup, onSoftHide, onBackToHome, token, tokenAmountUsd, backAnimation, redirectToCheckoutHistory, }: FunPaymentSetupProps): React.JSX.Element;
17
+ export declare function FunPaymentSetup({ paymentFlow, paymentAddress, paymentMethod, onSetup, onSoftHide, onBackToHome, token, tokenChainId, tokenAmountUsd, backAnimation, redirectToCheckoutHistory, }: FunPaymentSetupProps): React.JSX.Element;
17
18
  export {};
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  interface ProgressLabel {
3
3
  text: string;
4
4
  description: string;
5
+ linkText?: string;
6
+ linkUrl?: string;
5
7
  }
6
8
  interface FunVerticalProgressBarProps {
7
9
  step: number;
@@ -4,12 +4,13 @@ export interface FunSelectOption {
4
4
  value: string;
5
5
  label: ReactNode;
6
6
  }
7
- export declare function FunSelectDropdown({ handleSelect, isDropdownOpen, options, selectedValue, optionItemPadding, }: {
7
+ export declare function FunSelectDropdown({ handleSelect, isDropdownOpen, options, selectedValue, optionItemPadding, showBorder, }: {
8
8
  handleSelect: (newValue: FunSelectOption['value']) => void;
9
9
  isDropdownOpen: boolean;
10
10
  options: FunSelectOption[];
11
11
  selectedValue: FunSelectOption['value'];
12
12
  optionItemPadding?: BoxProps['padding'];
13
+ showBorder?: boolean;
13
14
  }): React.JSX.Element | null;
14
15
  interface FunSelectProps {
15
16
  initValue?: FunSelectOption['value'];
@@ -10,8 +10,9 @@ export interface FunToastProps {
10
10
  title: string;
11
11
  hideTitleSuffix?: boolean;
12
12
  titleSuffix?: ReactNode;
13
- description: string;
13
+ description: string | ReactNode;
14
+ isDescriptionText?: boolean;
14
15
  icon?: ReactNode;
15
16
  closing?: boolean;
16
17
  }
17
- export declare function FunToast({ type, title, titleSuffix, hideTitleSuffix, description, icon, }: FunToastProps): React.JSX.Element;
18
+ export declare function FunToast({ type, title, titleSuffix, hideTitleSuffix, description, isDescriptionText, icon, }: FunToastProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { CheckoutCoreQuoteResponse, CheckoutHistoryItem, ExecutionReceipt } from '@funkit/core';
1
+ import { CheckoutCoreQuoteResponse, CheckoutHistoryItem, Operation } from '@funkit/core';
2
2
  import React, { ReactNode } from 'react';
3
3
  import { Abi, Address } from 'viem';
4
4
  import { CheckoutHistoryStateMap } from '../../utils/checkout';
@@ -23,8 +23,6 @@ export interface FunkitCheckoutConfig {
23
23
  targetAssetAmount: number;
24
24
  /** Timestamp (in milliseconds) after which the checkout should not be performed, and the funds will become rescuable. Min: 300000 (5 mins), Max: 3600000 (1 hour). **/
25
25
  expirationTimestampMs: number;
26
- /** Whether direct checkout execution should be allowed **/
27
- enableDirectExecution?: boolean;
28
26
  /** ****************************************
29
27
  * Checkout ModalUI-related configurations *
30
28
  *******************************************/
@@ -34,17 +32,20 @@ export interface FunkitCheckoutConfig {
34
32
  icon?: null | ReactNode;
35
33
  /** Title of the item being checked out. e.g. Staked Ether, XYZ Option, Solar Bond ABC **/
36
34
  checkoutItemTitle: string;
37
- /** Description of the item being checked out. If not specified, it will default to "Amount". **/
35
+ /** Description of the item being checked out. If not specified, it will default to blank. **/
38
36
  checkoutItemDescription?: string;
37
+ /** The quantity of the item being checked out. If not specified (0, null, undefined), it will default to blank. **/
38
+ checkoutItemAmount?: number;
39
39
  }
40
40
  interface FunkitCheckoutValidationResult {
41
41
  isValid: boolean;
42
42
  message: string;
43
43
  }
44
44
  type FunkitCheckoutQuoteResult = CheckoutCoreQuoteResponse;
45
- export type FunkitDirectExecutionResult = {
46
- receipt: ExecutionReceipt | string | null;
47
- type: 'web2' | 'web3';
45
+ export type FunkitCheckoutResult = {
46
+ type: 'error' | 'success';
47
+ message: string;
48
+ metadata: object | Error;
48
49
  };
49
50
  interface useFunkitCheckoutProps {
50
51
  /** @required the checkout config object **/
@@ -55,8 +56,10 @@ interface useFunkitCheckoutProps {
55
56
  onEstimation?: (result: FunkitCheckoutQuoteResult) => void;
56
57
  /** @optional fires when a checkout if confirmed with the funkit server **/
57
58
  onConfirmation?: () => void;
58
- /** @optional fires if the checkout is unneeded and the transaction can be executed directly. Recommended to implement this if `config.enableDirectExecution` is set to true.**/
59
- onDirectExecution?: (result: FunkitDirectExecutionResult) => void;
59
+ /** @optional fires if the checkout fails at any point */
60
+ onError?: (result: FunkitCheckoutResult) => void;
61
+ /** @optional fires if the checkout fails at any point */
62
+ onSuccess?: (result: FunkitCheckoutResult) => void;
60
63
  }
61
64
  /**
62
65
  * Checkout Item for frontend use
@@ -84,6 +87,8 @@ export interface FunkitActiveCheckoutItem {
84
87
  symbol: string | null;
85
88
  chainId: string;
86
89
  };
90
+ /** Whether the checkout is a direct execution. If true, the initSettings.actionsParamfalse, it would go through the fun checkout protocol. */
91
+ isDirectExecution: boolean;
87
92
  }
88
93
  export declare function FunkitCheckoutProvider({ children }: {
89
94
  children: ReactNode;
@@ -93,7 +98,9 @@ interface useFunkitPreCheckoutInternalReturn {
93
98
  updateSourceAsset: (newSourceAsset: Address, newSourceAssetSymbol: string, newSourceAssetChainId: string) => void;
94
99
  confirmCheckout: (paymentMethod: PaymentMethod) => Promise<Address>;
95
100
  getCheckoutDraftDollarValue: () => Promise<void>;
96
- getCheckoutQuote: () => Promise<void>;
101
+ getCheckoutQuote: (sponsorInitialTransferGasLimit: number) => Promise<void>;
102
+ handleWeb2DirectExecution: () => Promise<void>;
103
+ generateSignedBatchOperationForDirectExecution: () => Promise<Operation | null>;
97
104
  }
98
105
  /**
99
106
  * Internal hook to handle frontend pre-checkout operations, PER-CHECKOUT ITEM.
@@ -14,7 +14,7 @@ export type Theme = ThemeVars | {
14
14
  lightMode: ThemeVars;
15
15
  darkMode: ThemeVars;
16
16
  };
17
- export interface RainbowKitProviderProps {
17
+ export interface FunkitProviderProps {
18
18
  wagmiConfig: CreateConfigParameters;
19
19
  chains: RainbowKitChain[];
20
20
  initialChain?: RainbowKitChain | number;
@@ -33,5 +33,5 @@ export interface RainbowKitProviderProps {
33
33
  funkitConfig: FunkitConfig;
34
34
  }
35
35
  export declare const RESERVED_GROUP_NAME = "funkit-web2";
36
- export declare function FunkitProvider(props: PropsWithChildren<RainbowKitProviderProps>): React.JSX.Element;
37
- export declare function FunkitProviderInner({ appInfo, avatar, chains, children, coolMode, id, initialChain, locale, modalSize, showRecentTransactions, theme, funkitConfig, }: PropsWithChildren<RainbowKitProviderProps>): React.JSX.Element;
36
+ export declare function FunkitProvider(props: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
37
+ export declare function FunkitProviderInner({ appInfo, avatar, chains, children, coolMode, id, initialChain, locale, modalSize, showRecentTransactions, theme, funkitConfig, }: PropsWithChildren<FunkitProviderProps>): React.JSX.Element;
@@ -5,6 +5,10 @@ interface OtpErrors {
5
5
  otpValue: string;
6
6
  }
7
7
  type OtpErrorType = OtpErrors | null;
8
+ export declare const PRIVY_ERROR_CODES: {
9
+ readonly INVALID_CREDENTIALS: "invalid_credentials";
10
+ readonly NETWORK_ERROR: "network_error";
11
+ };
8
12
  interface FunkitWeb2ContextType {
9
13
  privy: PrivyJS | null;
10
14
  loading: boolean;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const NotFoundIcon: ({ size }: {
3
+ size?: number | undefined;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const SearchIcon: () => React.JSX.Element;
2
+ export declare const SearchIcon: ({ selected }: {
3
+ selected?: boolean | undefined;
4
+ }) => React.JSX.Element;
@@ -14,3 +14,4 @@ export declare const animateAvatarInClass: string;
14
14
  export declare const animateAvatarOutClass: string;
15
15
  export declare const animateContentInClass: string;
16
16
  export declare const animateContentOutClass: string;
17
+ export declare const scroll: string;
@@ -0,0 +1 @@
1
+ export declare const pulseAnimation: string;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SkeletalLoader: () => React.JSX.Element[];