@funkit/connect 5.4.0 → 5.4.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 (51) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +4 -0
  3. package/dist/hooks/queries/useClientId.d.ts +3 -0
  4. package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -0
  5. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +4 -4
  6. package/dist/hooks/useDirectExecutionInfoPolling.d.ts +4 -4
  7. package/dist/hooks/usePaymentSources.d.ts +2 -2
  8. package/dist/index.js +445 -154
  9. package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +10 -0
  10. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  11. package/dist/utils/customer.d.ts +6 -0
  12. package/dist/utils/directExecution.d.ts +4 -0
  13. package/dist/utils/purifyCheckoutHistoryItem.d.ts +3 -1
  14. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  18. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
  19. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
  20. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
  21. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
  22. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
  23. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
  24. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
  25. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
  26. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
  27. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
  28. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
  29. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
  30. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
  31. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
  32. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
  33. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
  34. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
  35. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  37. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/index.js +62 -62
  42. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  49. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  51. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 5.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e38e65b: feat(connect): katana - add FunPoweredTagline to every screen and Receive Token info to Transfer Token screen
8
+ - 7395597: refactor: better de loading state
9
+ - 8292deb: feat: fetching organization / client id
10
+ - c816681: feat: expose additionActions and updatedTimeMs to PurifiedCheckoutHistoryItem
11
+ - 3bb9542: feat(connect): add the option to show the total receive amount in USD below the token amount to FunkitUiCustomizationsConfig
12
+ - 1cf728e: feat(connect): add direct execution notifications to Transfer Crypto page
13
+ - Updated dependencies [0557854]
14
+ - Updated dependencies [8292deb]
15
+ - Updated dependencies [cbea7ca]
16
+ - @funkit/fun-relay@0.1.4
17
+ - @funkit/api-base@1.8.4
18
+ - @funkit/core@2.3.21
19
+ - @funkit/wagmi-tools@3.0.43
20
+
3
21
  ## 5.4.0
4
22
 
5
23
  ### Minor Changes
@@ -8,3 +8,7 @@ export declare function FunDirectExecutionHistoryDetail({ bottomBarId, directExe
8
8
  isNewDeposit?: boolean;
9
9
  }) => void;
10
10
  }): React.JSX.Element;
11
+ export declare function DirectExecutionOrderDetailSection({ directExecution, showRelayLink, }: {
12
+ directExecution: DirectExecution;
13
+ showRelayLink: boolean;
14
+ }): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const useClientId: () => import("@tanstack/react-query").UseQueryResult<{
2
+ id: string;
3
+ }, Error>;
@@ -1,5 +1,6 @@
1
1
  import { type CheckoutHistoryItem } from '@funkit/api-base';
2
2
  import { PaymentMethod } from '~/domains/paymentMethods';
3
+ export declare const DEFAULT_NOTIF_CUTOFF: number;
3
4
  interface RecentCheckoutsQuery {
4
5
  isVisible: boolean;
5
6
  paymentMethod?: PaymentMethod;
@@ -1,8 +1,7 @@
1
- import { CheckoutRefundState, CheckoutState, RelayExecutionStatus } from '@funkit/api-base';
2
- import type { Hex } from 'viem';
1
+ import { CheckoutRefundState, CheckoutState, type DirectExecution, RelayExecutionStatus } from '@funkit/api-base';
3
2
  export declare function mapRelayExecutionStatusToCheckoutState(status: RelayExecutionStatus): CheckoutState;
4
- export declare function useCheckoutDirectExecutionHistory({ txHash, }: {
5
- txHash: Hex | undefined;
3
+ export declare function useCheckoutDirectExecutionHistory({ initDirectExecution, }: {
4
+ initDirectExecution?: DirectExecution;
6
5
  }): {
7
6
  state: CheckoutState;
8
7
  refundState: CheckoutRefundState | undefined;
@@ -10,4 +9,5 @@ export declare function useCheckoutDirectExecutionHistory({ txHash, }: {
10
9
  isCompleted: boolean;
11
10
  isFailed: boolean;
12
11
  isDelayed: boolean;
12
+ isProcessing: boolean;
13
13
  };
@@ -1,7 +1,7 @@
1
- import type { Hex } from 'viem';
2
- export declare function useDirectExecutionInfoPolling({ txHash, }: {
3
- txHash: Hex | undefined;
1
+ import { type DirectExecution } from '@funkit/api-base';
2
+ export declare function useDirectExecutionInfoPolling({ initDirectExecution, }: {
3
+ initDirectExecution: DirectExecution | undefined;
4
4
  }): {
5
- directExecution: import("@funkit/api-base").DirectExecution | undefined;
5
+ directExecution: DirectExecution | undefined;
6
6
  isLoading: boolean;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { type ConnectablePaymentMethodInfo, PaymentMethod } from '~/domains/paymentMethods';
2
- export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string) => {
2
+ import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
3
+ export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
3
4
  preferred: (import("~/domains/paymentMethods").PaymentMethodBrokerageInfo | import("~/domains/paymentMethods").PaymentMethodAccountInfo | import("~/domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
4
5
  moreSources: PaymentMethod[];
5
6
  };
6
- export declare const useRemainingPaymentSourcesCount: (targetChainId: string) => number;