@funkit/connect 9.3.2 → 9.4.3

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 (64) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/dist/__generated__/default_configs.d.ts +222 -12
  3. package/dist/__generated__/default_feature_gates.d.ts +1 -0
  4. package/dist/{chunk-MXNOQTKX.js → chunk-O35RTEEF.js} +17 -1
  5. package/dist/{chunk-RHUOOPDI.js → chunk-S65TG73G.js} +12 -1
  6. package/dist/{chunk-AGBRSMZ7.js → chunk-VLAOBEJN.js} +12 -1
  7. package/dist/clients/fanatics.css +5285 -4388
  8. package/dist/clients/fanatics.js +2 -2
  9. package/dist/clients/polymarket.d.ts +5 -1
  10. package/dist/clients/polymarket.js +11 -15
  11. package/dist/components/Box/Box.d.ts +40 -40
  12. package/dist/components/Dropdown/BaseDropdown.css.d.ts +2 -2
  13. package/dist/components/Dropdown/BaseDropdown.d.ts +50 -6
  14. package/dist/components/Dropdown/ChainDropdown.d.ts +5 -2
  15. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +7 -1
  16. package/dist/components/Dropdown/TokenDropdown.d.ts +3 -1
  17. package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +2 -2
  18. package/dist/components/FunInput/FunInput.css.d.ts +1 -0
  19. package/dist/components/ModalHeightAnimationLayer/WithdrawalModalHeightAnimationWrapper.d.ts +1 -1
  20. package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
  21. package/dist/components/Tabs/Tabs.d.ts +1 -0
  22. package/dist/components/Tabs/tabs.css.d.ts +1 -1
  23. package/dist/config/getDefaultConfig.d.ts +1 -1
  24. package/dist/css/sprinkles.css.d.ts +108 -40
  25. package/dist/hooks/statsig/useFeatureGate.d.ts +3 -6
  26. package/dist/hooks/useBluvo.d.ts +1215 -5
  27. package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -1
  28. package/dist/hooks/useScrollDivider.d.ts +10 -2
  29. package/dist/hooks/useSupportedAssets.d.ts +9 -0
  30. package/dist/hooks/{useTokenChain.d.ts → useTokenAndChainDropdown.d.ts} +8 -2
  31. package/dist/hooks/useTokenTransfer.d.ts +1 -0
  32. package/dist/hooks/useTokenTransferConfig.d.ts +2 -0
  33. package/dist/index.css +5390 -4440
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.js +2621 -1490
  36. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +1 -1
  37. package/dist/modals/CheckoutModal/CheckoutBlockedReason.d.ts +1 -0
  38. package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +1 -1
  39. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetInfoSection.d.ts +1 -1
  40. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsListLoading.d.ts +6 -0
  41. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +6 -0
  42. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +3 -1
  43. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
  44. package/dist/modals/CheckoutModal/stepTransition.d.ts +4 -1
  45. package/dist/modals/CheckoutModal/useCheckoutBlocked.d.ts +18 -0
  46. package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -0
  47. package/dist/providers/FunkitThemeProvider.d.ts +102 -0
  48. package/dist/providers/GeneralWalletProvider.d.ts +5 -5
  49. package/dist/themes/baseTheme.js +1 -1
  50. package/dist/themes/darkTheme.js +2 -2
  51. package/dist/themes/lightTheme.js +2 -2
  52. package/dist/utils/bluvo.d.ts +99 -1
  53. package/dist/utils/checkout.d.ts +1 -1
  54. package/dist/utils/swapped.d.ts +1 -0
  55. package/dist/utils/tokenTransfer/disabledList.d.ts +14 -0
  56. package/dist/utils/tokenTransfer/types.d.ts +26 -0
  57. package/dist/wallets/walletConnectors/index.js +42 -42
  58. package/package.json +10 -10
  59. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalCallbackSuccess.d.ts +0 -0
  60. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalContent.d.ts +0 -0
  61. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalModal.d.ts +0 -0
  62. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalSuccess.d.ts +0 -0
  63. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/types.d.ts +0 -0
  64. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/useWithdrawal.d.ts +0 -0
@@ -1,2 +1,2 @@
1
1
  import { type GetEnsNameReturnType } from 'viem/ens';
2
- export declare function useMainnetEnsAvatar(name: GetEnsNameReturnType | undefined): import("viem/ens").GetEnsAvatarReturnType | undefined;
2
+ export declare function useMainnetEnsAvatar(name: GetEnsNameReturnType | undefined): import("viem").GetEnsAvatarReturnType | undefined;
@@ -1,11 +1,19 @@
1
+ export type UseScrollDividerResult = {
2
+ hasBottomDivider: boolean;
3
+ hasTopDivider: boolean;
4
+ isAtBottom: boolean;
5
+ isScrollable: boolean;
6
+ isScrolling: boolean;
7
+ ref: (node: HTMLElement | null) => void;
8
+ };
1
9
  /**
2
10
  * @returns information about which dividers to display based on whether an observed content is scrolled to the top or bottom
3
11
  */
4
12
  export declare const useScrollDivider: () => {
5
- ref: import("react").RefObject<HTMLInputElement | null>;
13
+ ref: (node: HTMLElement | null) => void;
6
14
  hasTopDivider: boolean;
7
15
  hasBottomDivider: boolean;
16
+ isAtBottom: boolean;
8
17
  isScrolling: boolean;
9
18
  isScrollable: boolean;
10
- isAtBottom: boolean;
11
19
  };
@@ -0,0 +1,9 @@
1
+ import { type GetSupportedAssetsResponse } from '@funkit/api-base';
2
+ interface UseSupportedAssetsOptions {
3
+ enabled?: boolean;
4
+ }
5
+ /**
6
+ * Fetches and caches the /assets/supported endpoint.
7
+ */
8
+ export declare function useSupportedAssets(options?: UseSupportedAssetsOptions): import("@tanstack/react-query").UseQueryResult<GetSupportedAssetsResponse, Error>;
9
+ export {};
@@ -11,11 +11,17 @@ interface UseTokenChainResult {
11
11
  selectedToken: string;
12
12
  selectedChainName: string;
13
13
  handleTokenChange: (token: string, chainId?: number, autoUpdate?: boolean) => void;
14
+ isLoadingAssets: boolean;
15
+ chainIdSortOrder: number[];
16
+ priorityTokenSymbols: string[];
17
+ defaultChainId: number;
14
18
  }
15
19
  /**
16
20
  * Semi reusable hook (tied into token transfer configuration)
17
21
  * ensures token&chain dropdown preselection logic is reusable
18
- * @param transferInit - used for chain&token solana filtering, can be omitted if not needed
22
+ * @param transferInit - deposit address availability (solana/btc/tron filtering)
23
+ * @param defaultValues - caller-provided overrides (e.g. from UDA params or navigation state)
24
+ * @param isWithdrawal - when true, uses legacy withdrawal flags instead of Statsig config
19
25
  */
20
- export declare const useTokenAndChainSelection: (transferInit: CheckoutInitTokenTransferResponse | undefined, defaultValues?: TransferTokenDefault, isWithdrawal?: boolean) => UseTokenChainResult;
26
+ export declare const useTokenAndChainDropdown: (transferInit: CheckoutInitTokenTransferResponse | undefined, defaultValues?: TransferTokenDefault, isWithdrawal?: boolean) => UseTokenChainResult;
21
27
  export {};
@@ -32,4 +32,5 @@ export declare function getMinTransferValueForChain(chainId: number, limits: {
32
32
  mainnet: number;
33
33
  nonMainnet: number;
34
34
  }): number;
35
+ export declare const useMinTransferValue: (selectedChainId: number) => number;
35
36
  export {};
@@ -0,0 +1,2 @@
1
+ import type { TokenTransferConfig } from '../utils/tokenTransfer/types';
2
+ export declare function useTokenTransferConfig(): TokenTransferConfig;