@funkit/connect 5.3.5 → 5.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 (64) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/{chunk-CRTRMZFT.js → chunk-ICCAQZHZ.js} +1 -1
  3. package/dist/{chunk-CRPOYQ6X.js → chunk-R2UFCJL7.js} +5 -0
  4. package/dist/{chunk-KCSHTK5R.js → chunk-RN4I4Y57.js} +1 -1
  5. package/dist/components/Box/Box.d.ts +1 -1
  6. package/dist/components/Dropdown/ChainDropdown.d.ts +6 -3
  7. package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
  8. package/dist/components/FunFeatureList/FunFeatureList.d.ts +3 -1
  9. package/dist/config/getDefaultConfig.d.ts +1 -1335
  10. package/dist/consts/customers.d.ts +2 -0
  11. package/dist/css/sprinkles.css.d.ts +3 -1
  12. package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -2
  13. package/dist/hooks/queries/useRecentDirectExecutions.d.ts +9 -0
  14. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +7 -5
  15. package/dist/hooks/useDirectExecutionInfoPolling.d.ts +7 -0
  16. package/dist/index.css +2674 -2664
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +745 -493
  19. package/dist/providers/FunkitHistoryContext.d.ts +9 -5
  20. package/dist/providers/FunkitThemeProvider.d.ts +3 -0
  21. package/dist/themes/baseTheme.js +1 -1
  22. package/dist/themes/darkTheme.js +2 -2
  23. package/dist/themes/lightTheme.js +2 -2
  24. package/dist/utils/flags/config.d.ts +42 -4
  25. package/dist/utils/purifyCheckoutHistoryItem.d.ts +25 -3
  26. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  31. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/index.js +55 -55
  36. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  45. package/package.json +7 -7
  46. package/dist/hooks/useRelayExecutionInfo.d.ts +0 -6
  47. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  48. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
  49. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
  50. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
  51. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
  52. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
  53. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
  54. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
  55. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
  56. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
  57. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
  58. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
  59. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
  60. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
  61. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
  62. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
  63. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
  64. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
@@ -4,3 +4,5 @@ export declare function isVertexCustomer(apiKey: string): apiKey is "OQXhzzkLHE2
4
4
  export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
5
5
  export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
6
6
  export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
7
+ export declare function isEtherealCustomer(apiKey: string): apiKey is "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um";
8
+ export declare function isKatanaCustomer(apiKey: string): apiKey is "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4";
@@ -155,6 +155,7 @@ declare const themeContractValues: {
155
155
  };
156
156
  radii: {
157
157
  actionButton: string;
158
+ actionButtonInner: string;
158
159
  connectButton: string;
159
160
  menuButton: string;
160
161
  modal: string;
@@ -342,6 +343,7 @@ export declare const themeVars: {
342
343
  };
343
344
  radii: {
344
345
  actionButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
346
+ actionButtonInner: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
345
347
  connectButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
346
348
  menuButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
347
349
  modal: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -614,7 +616,7 @@ export declare const sprinkles: ((props: {
614
616
  } & {
615
617
  readonly alignSelf?: "center" | "flex-end" | "flex-start" | undefined;
616
618
  readonly backgroundSize?: "cover" | undefined;
617
- readonly borderRadius?: "tooltip" | "1" | "10" | "13" | "16" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "modalActionButton" | "modalActionButtonMobile" | "summaryBox" | "youPayYouReceive" | "inputAmountSwitcher" | "qrCode" | "skeleton" | "dropdown" | "dropdownItem" | "4" | "6" | "8" | "11" | "24" | "30" | "full" | "badge" | "smallBadge" | undefined;
619
+ readonly borderRadius?: "tooltip" | "1" | "10" | "13" | "16" | "actionButton" | "actionButtonInner" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "modalActionButton" | "modalActionButtonMobile" | "summaryBox" | "youPayYouReceive" | "inputAmountSwitcher" | "qrCode" | "skeleton" | "dropdown" | "dropdownItem" | "4" | "6" | "8" | "11" | "24" | "30" | "full" | "badge" | "smallBadge" | undefined;
618
620
  readonly borderStyle?: "dotted" | "hidden" | "solid" | undefined;
619
621
  readonly borderWidth?: "0" | "1" | "2" | "3" | "4" | "0.5" | undefined;
620
622
  readonly cursor?: "default" | "help" | "not-allowed" | "pointer" | undefined;
@@ -3,7 +3,6 @@ import { PaymentMethod } from '~/domains/paymentMethods';
3
3
  interface RecentCheckoutsQuery {
4
4
  isVisible: boolean;
5
5
  paymentMethod?: PaymentMethod;
6
- newerThanMs?: number;
7
6
  }
8
7
  interface RefreshIntervalConfig {
9
8
  listRefresh: number;
@@ -13,5 +12,5 @@ export declare function useCheckoutRefreshInterval(): RefreshIntervalConfig;
13
12
  /**
14
13
  * @returns recent checkouts tied to a recipient address used in the token transfer flow
15
14
  */
16
- export declare const useRecentCheckouts: ({ paymentMethod, newerThanMs, isVisible, }: RecentCheckoutsQuery) => import("@tanstack/react-query").UseQueryResult<CheckoutHistoryItem[], Error>;
15
+ export declare const useRecentCheckouts: ({ paymentMethod, isVisible, }: RecentCheckoutsQuery) => import("@tanstack/react-query").UseQueryResult<CheckoutHistoryItem[], Error>;
17
16
  export {};
@@ -0,0 +1,9 @@
1
+ import { type DirectExecution } from '@funkit/api-base';
2
+ interface RecentDirectExecutionsQuery {
3
+ isVisible: boolean;
4
+ }
5
+ /**
6
+ * @returns recent direct executions tied to a recipient address used in the token transfer flow
7
+ */
8
+ export declare const useRecentDirectExecutions: ({ isVisible, }: RecentDirectExecutionsQuery) => import("@tanstack/react-query").UseQueryResult<DirectExecution[], Error>;
9
+ export {};
@@ -1,9 +1,11 @@
1
- import { CheckoutState, type DirectExecution } from '@funkit/api-base';
2
- export declare function useCheckoutDirectExecutionHistory({ directExecution, }: {
3
- directExecution: DirectExecution | undefined;
1
+ import { CheckoutRefundState, CheckoutState, RelayExecutionStatus } from '@funkit/api-base';
2
+ import type { Hex } from 'viem';
3
+ export declare function mapRelayExecutionStatusToCheckoutState(status: RelayExecutionStatus): CheckoutState;
4
+ export declare function useCheckoutDirectExecutionHistory({ txHash, }: {
5
+ txHash: Hex | undefined;
4
6
  }): {
5
- state: import("@funkit/fun-relay/src/types").CheckoutState | CheckoutState;
6
- refundState: import("@funkit/fun-relay/src/types").CheckoutRefundState | undefined;
7
+ state: CheckoutState;
8
+ refundState: CheckoutRefundState | undefined;
7
9
  isRefunded: boolean;
8
10
  isCompleted: boolean;
9
11
  isFailed: boolean;
@@ -0,0 +1,7 @@
1
+ import type { Hex } from 'viem';
2
+ export declare function useDirectExecutionInfoPolling({ txHash, }: {
3
+ txHash: Hex | undefined;
4
+ }): {
5
+ directExecution: import("@funkit/api-base").DirectExecution | undefined;
6
+ isLoading: boolean;
7
+ };