@funkit/connect 8.3.0 → 8.4.0-next.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 (58) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/__generated__/default_configs.d.ts +63 -0
  3. package/dist/{chunk-A24XIU2M.js → chunk-UE3P6YHW.js} +14 -0
  4. package/dist/{chunk-CMS4F5PL.js → chunk-XX5CVGHN.js} +3 -2
  5. package/dist/{chunk-GRQP5R23.js → chunk-YUWSE22N.js} +3 -2
  6. package/dist/clients/fanatics.css +3956 -3651
  7. package/dist/clients/fanatics.js +35 -6
  8. package/dist/components/Box/Box.d.ts +45 -45
  9. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -0
  10. package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +1 -3
  11. package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +3 -1
  12. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  13. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +1 -0
  14. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItemSkeleton.d.ts +2 -0
  15. package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -0
  16. package/dist/components/Icons/AcrossIcon.d.ts +4 -0
  17. package/dist/components/Tabs/Tabs.d.ts +1 -0
  18. package/dist/consts/customers.d.ts +1 -1
  19. package/dist/css/sprinkles.css.d.ts +87 -45
  20. package/dist/domains/meld.d.ts +0 -6
  21. package/dist/hooks/queries/useFops.d.ts +17 -0
  22. package/dist/hooks/track/CheckoutModalEvent.d.ts +7 -0
  23. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
  24. package/dist/hooks/useStepQueryReadiness.d.ts +32 -0
  25. package/dist/index.css +3976 -3665
  26. package/dist/index.js +3643 -2985
  27. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -0
  28. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
  29. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
  30. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  31. package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +11 -0
  32. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +5 -1
  33. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +10 -0
  34. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +10 -0
  35. package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -0
  36. package/dist/modals/CheckoutModal/SourceChange/{DefaultSourceList.d.ts → SourceList.d.ts} +3 -3
  37. package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -1
  38. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +16 -0
  39. package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -0
  40. package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -0
  41. package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
  42. package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -0
  43. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  44. package/dist/providers/FunkitThemeProvider.d.ts +63 -0
  45. package/dist/themes/baseTheme.js +1 -1
  46. package/dist/themes/darkTheme.js +2 -2
  47. package/dist/themes/lightTheme.js +2 -2
  48. package/dist/utils/across.d.ts +5 -0
  49. package/dist/utils/depositCutoff.d.ts +9 -0
  50. package/dist/utils/directExecution.d.ts +16 -0
  51. package/dist/utils/flags/config.d.ts +2 -2
  52. package/dist/utils/lighter.d.ts +1 -3
  53. package/dist/utils/sanitizeHtml.d.ts +7 -0
  54. package/dist/utils/sanitizeUrl.d.ts +10 -0
  55. package/dist/utils/tokenIconUrl.d.ts +1 -1
  56. package/dist/wallets/walletConnectors/index.js +13 -13
  57. package/package.json +4 -4
  58. package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +0 -15
@@ -4,6 +4,7 @@ interface FunDirectExecutionHistoryBottomBarProps {
4
4
  isProcessing: boolean;
5
5
  isLoaded: boolean;
6
6
  onClose?: () => void;
7
+ onCloseLabel?: string;
7
8
  actionButtonProps?: FunButtonProps;
8
9
  }
9
10
  export declare const FunDirectExecutionHistoryBottomBar: FC<FunDirectExecutionHistoryBottomBarProps>;
@@ -14,8 +14,6 @@ interface CustomStatusAnimationParams {
14
14
  withTopDivider: 'always' | 'never' | 'scroll' | undefined;
15
15
  /** ID of the element to scroll (main dialog content) when scrolling over the overflowed title */
16
16
  scrollableContent: string;
17
- /** Whether this is a lighter native deposit checkout (eth mainnet) */
18
- isLighterNativeDeposit?: boolean;
19
17
  }
20
18
  interface CustomStatusAnimationReturn {
21
19
  /** To be passed to scrolling container, to sync the scroll position */
@@ -29,5 +27,5 @@ interface CustomStatusAnimationReturn {
29
27
  * Hook for sharing the logic for the custom status icon animation in checkout details. This is very
30
28
  * much _not_ generic or intended to be reused anywhere, but the component itself is duplicated.
31
29
  */
32
- export declare function useCustomStatusAnimationAboveTopbar({ depositAddress, isActiveCheckout, isCheckoutDetailView, paddingTop, topbar, withTopDivider, scrollableContent, isLighterNativeDeposit, }: CustomStatusAnimationParams): CustomStatusAnimationReturn;
30
+ export declare function useCustomStatusAnimationAboveTopbar({ depositAddress, isActiveCheckout, isCheckoutDetailView, paddingTop, topbar, withTopDivider, scrollableContent, }: CustomStatusAnimationParams): CustomStatusAnimationReturn;
33
31
  export {};
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
+ import { type FunkitCheckoutConfig } from '../../index';
2
3
  import { FunCheckoutStep } from '../../modals/CheckoutModal/stepTransition';
3
4
  interface FunCheckoutModalHeightAnimationWrapperProps {
4
5
  children: React.ReactNode;
6
+ checkoutConfig?: FunkitCheckoutConfig;
5
7
  checkoutStep?: FunCheckoutStep;
6
8
  }
7
9
  export declare const mapHeightToCheckoutStep: Partial<Record<FunCheckoutStep, number>>;
8
- export declare function FunCheckoutModalHeightAnimationWrapper({ children, checkoutStep, }: FunCheckoutModalHeightAnimationWrapperProps): React.JSX.Element;
10
+ export declare function FunCheckoutModalHeightAnimationWrapper({ children, checkoutConfig, checkoutStep, }: FunCheckoutModalHeightAnimationWrapperProps): React.JSX.Element;
9
11
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export type InfoBannerProps = {
3
- /** Contents of the banner, supports HTML markup for more structured announcements (eg. link to a blogpost) or a `ReactNode` for more complex content with React components */
3
+ /** Contents of the banner. Pass plain text or a ReactNode (e.g., <Trans> for links/formatting). */
4
4
  message: string | React.ReactNode;
5
5
  type: 'warning' | 'alert' | 'announcement';
6
6
  expireAtMs?: number;
@@ -19,4 +19,5 @@ export interface FunPaymentMethodItemProps {
19
19
  testId?: string;
20
20
  }
21
21
  export declare const FunPaymentMethodItem: ({ keyIcon, keyText, valueIcon, disclaimerText, badge, onClick, isError, isDisabled, isActive, testId, }: FunPaymentMethodItemProps) => React.JSX.Element;
22
+ export declare const LoadingFunPaymentMethodItem: () => React.JSX.Element;
22
23
  export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FunPaymentMethodItemSkeleton: () => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { type FormOfPayment } from '@funkit/api-base';
1
2
  import React, { type ReactNode } from 'react';
2
3
  import { type FunkitPaymentMethodIconsConfig } from '../../providers/FunkitConfigContext';
3
4
  import { PaymentMethod, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
@@ -53,4 +54,10 @@ export declare function AddPaymentMethodItem({ paymentMethod, isClickable, isAct
53
54
  export declare function PayPalPaymentMethodItem({ isActive, isClickable, onClick, isLoading, }: BasePaymentMethodItemProps & {
54
55
  isLoading: boolean;
55
56
  }): React.JSX.Element;
57
+ /**
58
+ * Payment method item for a Form of Payment from the fops API (Swapped providers)
59
+ */
60
+ export declare function FopPaymentMethodItem({ fop, isActive, onClick, testId, }: BasePaymentMethodItemProps & {
61
+ fop: FormOfPayment;
62
+ }): React.JSX.Element;
56
63
  export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const AcrossIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -7,6 +7,7 @@ export type Tab<T = string> = {
7
7
  };
8
8
  export type TabsProps = {
9
9
  tabs: Tab[];
10
+ disabled?: boolean;
10
11
  activeTab: number;
11
12
  onTabChange: (tab: number) => void;
12
13
  /** Custom background color for the container */
@@ -15,4 +15,4 @@ export declare function isPerplCustomer(apiKey: string): apiKey is "wQDLu86Qab61
15
15
  export declare function isLighterxyzCustomer(apiKey: string): apiKey is "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2";
16
16
  export declare function isFanaticsCustomer(apiKey: string): apiKey is "lI7amueGK94QtGa7sGGVf8n0XhIcn4sHFAZRu5Jj";
17
17
  export declare function isLighterEthSpot(apiKey: string, checkoutConfig: FunkitCheckoutConfig | undefined): boolean | undefined;
18
- export declare function isLighterNativeFlow(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain'> | undefined): boolean;
18
+ export declare function isLighterSlowDeposit(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain'> | undefined): boolean;