@funkit/connect 8.3.1-next.0 → 8.4.0

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 (111) hide show
  1. package/CHANGELOG.md +125 -0
  2. package/dist/{chunk-5JRQC2VM.js → chunk-4WY7FNYP.js} +14 -0
  3. package/dist/{chunk-CUWQELX3.js → chunk-UUHLEWAL.js} +4 -2
  4. package/dist/{chunk-VWSYBHAK.js → chunk-Z4QDKBBG.js} +4 -2
  5. package/dist/clients/fanatics.css +4064 -3651
  6. package/dist/clients/fanatics.d.ts +6 -0
  7. package/dist/clients/fanatics.js +118 -43
  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/FunTxSummarySections.d.ts +7 -0
  11. package/dist/components/FunCheckoutHistory/TotalTimeItem.d.ts +6 -0
  12. package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +6 -0
  13. package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +1 -3
  14. package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +3 -1
  15. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  16. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +1 -0
  17. package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -0
  18. package/dist/components/Icons/New/CircleBitcoinIcon.d.ts +4 -0
  19. package/dist/components/Icons/New/DollarIcon.d.ts +3 -1
  20. package/dist/components/Tabs/Tabs.d.ts +1 -0
  21. package/dist/consts/customers.d.ts +1 -1
  22. package/dist/consts/layout.d.ts +0 -1
  23. package/dist/css/sprinkles.css.d.ts +91 -45
  24. package/dist/domains/asset.d.ts +1 -1
  25. package/dist/domains/meld.d.ts +0 -6
  26. package/dist/hooks/queries/useFops.d.ts +4 -2
  27. package/dist/hooks/queries/useSwappedDefaultCurrency.d.ts +5 -0
  28. package/dist/hooks/track/CheckoutModalEvent.d.ts +7 -0
  29. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
  30. package/dist/hooks/useStepQueryReadiness.d.ts +32 -0
  31. package/dist/index.css +4090 -3671
  32. package/dist/index.js +3894 -3058
  33. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -0
  34. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
  35. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
  36. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  37. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +5 -1
  38. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +10 -0
  39. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +10 -0
  40. package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -0
  41. package/dist/modals/CheckoutModal/SourceChange/{DefaultSourceList.d.ts → SourceList.d.ts} +3 -3
  42. package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -1
  43. package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -0
  44. package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
  45. package/dist/providers/FunkitConfigContext.d.ts +14 -0
  46. package/dist/providers/FunkitProvider.d.ts +1 -0
  47. package/dist/providers/FunkitThemeProvider.d.ts +69 -0
  48. package/dist/themes/baseTheme.js +1 -1
  49. package/dist/themes/darkTheme.js +2 -2
  50. package/dist/themes/lightTheme.js +2 -2
  51. package/dist/utils/across.d.ts +5 -0
  52. package/dist/utils/depositCutoff.d.ts +9 -0
  53. package/dist/utils/directExecution.d.ts +16 -0
  54. package/dist/utils/flags/config.d.ts +2 -2
  55. package/dist/utils/lighter.d.ts +1 -1
  56. package/dist/utils/sanitizeHtml.d.ts +7 -0
  57. package/dist/utils/sanitizeUrl.d.ts +10 -0
  58. package/dist/utils/tokenIconUrl.d.ts +1 -1
  59. package/dist/utils/transfer.d.ts +2 -1
  60. package/dist/wallets/walletConnectors/index.js +24 -24
  61. package/package.json +4 -4
  62. package/dist/atoms/activeCheckout.d.ts +0 -183
  63. package/dist/atoms/activeWithdrawal.d.ts +0 -21
  64. package/dist/atoms/bridgeProviders/acrossAdapter.d.ts +0 -109
  65. package/dist/atoms/bridgeProviders/index.d.ts +0 -25
  66. package/dist/atoms/bridgeProviders/registry.d.ts +0 -12
  67. package/dist/atoms/bridgeProviders/relayAdapter.d.ts +0 -60
  68. package/dist/atoms/bridgeProviders/types.d.ts +0 -182
  69. package/dist/atoms/checkoutProgress.d.ts +0 -22
  70. package/dist/atoms/directExecution.d.ts +0 -70
  71. package/dist/atoms/funkitCheckout.d.ts +0 -18
  72. package/dist/atoms/funkitProvider/index.d.ts +0 -24
  73. package/dist/atoms/generalWallet.d.ts +0 -45
  74. package/dist/atoms/i18n.d.ts +0 -6
  75. package/dist/atoms/modalState.d.ts +0 -30
  76. package/dist/atoms/quote.d.ts +0 -98
  77. package/dist/atoms/stepTransition.d.ts +0 -6
  78. package/dist/atoms/store.d.ts +0 -1
  79. package/dist/atoms/track/index.d.ts +0 -10
  80. package/dist/atoms/utils.d.ts +0 -2
  81. package/dist/atoms/wagmi.d.ts +0 -4
  82. package/dist/atoms/walletClient.d.ts +0 -15391
  83. package/dist/chunk-A24XIU2M.js +0 -299
  84. package/dist/chunk-CMS4F5PL.js +0 -209
  85. package/dist/chunk-FBCU3TQA.js +0 -204
  86. package/dist/chunk-GRQP5R23.js +0 -209
  87. package/dist/chunk-MGQZMUZ2.js +0 -288
  88. package/dist/chunk-OTMBU2BL.js +0 -204
  89. package/dist/domains/across.d.ts +0 -29
  90. package/dist/domains/track.d.ts +0 -14
  91. package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +0 -2
  92. package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -14
  93. package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +0 -15
  94. package/dist/wallets/walletConnectors/chunk-3ZWIUCOI.js +0 -96
  95. package/dist/wallets/walletConnectors/chunk-4SC3PZVM.js +0 -70
  96. package/dist/wallets/walletConnectors/chunk-5AV2NSL3.js +0 -98
  97. package/dist/wallets/walletConnectors/chunk-5FWURLPF.js +0 -218
  98. package/dist/wallets/walletConnectors/chunk-6677RKVT.js +0 -69
  99. package/dist/wallets/walletConnectors/chunk-75A4Q5E5.js +0 -92
  100. package/dist/wallets/walletConnectors/chunk-ENLR4LXN.js +0 -94
  101. package/dist/wallets/walletConnectors/chunk-FT5BX7TL.js +0 -103
  102. package/dist/wallets/walletConnectors/chunk-GEMN6DM5.js +0 -106
  103. package/dist/wallets/walletConnectors/chunk-GXTI2PZD.js +0 -100
  104. package/dist/wallets/walletConnectors/chunk-LGT6IAXI.js +0 -93
  105. package/dist/wallets/walletConnectors/chunk-N7475PGA.js +0 -110
  106. package/dist/wallets/walletConnectors/chunk-O6YFVGVQ.js +0 -99
  107. package/dist/wallets/walletConnectors/chunk-OCM5YHT5.js +0 -92
  108. package/dist/wallets/walletConnectors/chunk-PRGCIJ7Y.js +0 -87
  109. package/dist/wallets/walletConnectors/chunk-RNIMZDHW.js +0 -95
  110. package/dist/wallets/walletConnectors/chunk-TLOROKED.js +0 -96
  111. package/dist/wallets/walletConnectors/chunk-WNQ3NPHX.js +0 -66
@@ -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>;
@@ -0,0 +1,7 @@
1
+ import React, { type ReactNode } from 'react';
2
+ type Falsy = null | undefined | false;
3
+ type Section = (ReactNode | Falsy)[];
4
+ export declare function FunTxSummarySections({ sections, }: {
5
+ sections: (Section | Falsy)[];
6
+ }): React.JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function TotalTimeItem({ label, isLoaded, seconds, }: {
3
+ label: string;
4
+ isLoaded: boolean;
5
+ seconds: number;
6
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { HistoricalCheckoutItem } from '../../domains/clientMetadata';
3
+ export declare function YouSendItem({ clientMetadata, isLoaded, }: {
4
+ clientMetadata: HistoricalCheckoutItem | undefined;
5
+ isLoaded: boolean;
6
+ }): React.JSX.Element;
@@ -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 {};
@@ -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 CircleBitcoinIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const DollarIcon: () => React.JSX.Element;
2
+ export declare const DollarIcon: ({ 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;
@@ -1,4 +1,3 @@
1
- export declare const VERTICAL_SECTION_GAP = "18";
2
1
  export declare const PROFILE_SIDE_PADDING = "18";
3
2
  export declare const HOME_CHECKOUT_DISPLAY_ROW_HEIGHT = 52;
4
3
  export declare const HOME_TOKEN_BALANCE_DISPLAY_ROW_HEIGHT = 52;