@funkit/connect 1.0.23 → 1.0.24

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.0.24
4
+
5
+ ### Patch Changes
6
+
7
+ - 570e072: feat: fees animation
8
+ - f824018: feat: support any chain connection (even for non-checkout supported chains)
9
+ - a75ebd4: feat: globally unique userId generation
10
+ - a75ebd4: feat: regionally available asset selection for moonpay
11
+ - 828fae0: feat: new `showUnknownTokens` config (defaults to false)
12
+ - 3b9f9f4: refactor: v2 of moonpay asset heuristics
13
+ - f824018: feat: allow copying of wallet connection uris
14
+
3
15
  ## 1.0.23
4
16
 
5
17
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ import './FunTransactionSummary.css';
1
2
  import React, { ReactNode } from 'react';
2
3
  export type FeesItem = null | {
3
4
  totalUsd: string | number | null;
@@ -28,6 +28,8 @@ interface FunkitLoginOptionsConfig {
28
28
  interface FunkitAccountOptionsConfig {
29
29
  /** Whether end users can deposit usdc/eth from the account modal **/
30
30
  allowDepositing?: boolean;
31
+ /** Whether unknown tokens are shown in users' account balance. Default: false. **/
32
+ showUnknownTokens?: boolean;
31
33
  }
32
34
  interface FunkitPaymentsConfig {
33
35
  /** If available, the specified payment method will be selected by default during checkout or deposits **/
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export declare function FunkitMoonpayProvider({ children, debug, }: {
3
+ children: any;
4
+ debug: boolean;
5
+ }): React.JSX.Element;
6
+ interface UserIpInfoFromMoonpay {
7
+ alpha2: string;
8
+ alpha3: string;
9
+ country: string;
10
+ ipAddress: string;
11
+ isAllowed: boolean;
12
+ isBuyAllowed: boolean;
13
+ isNftAllowed: boolean;
14
+ isSellAllowed: boolean;
15
+ isBalanceLedgerWithdrawAllowed: boolean;
16
+ isLowLimitEnabled: boolean;
17
+ state: string;
18
+ }
19
+ export declare function useFunkitMoonpayUserIp(): UserIpInfoFromMoonpay | null;
20
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { Auth, FunWallet } from '@funkit/core';
2
2
  import React from 'react';
3
- import { FunkitUserInfo } from '../../consts/funkit';
3
+ import { FinalFunkitUserInfo } from '../../consts/funkit';
4
4
  import { PaymentMethodInfo } from '../../consts/payment';
5
5
  type GeneralWalletAssets = null | {
6
6
  [x: string]: any;
@@ -11,7 +11,7 @@ interface GeneralWalletContextProps {
11
11
  isUserLoggedIn: boolean;
12
12
  isWeb2Login: boolean;
13
13
  isWeb3Login: boolean;
14
- userInfo: FunkitUserInfo;
14
+ userInfo: FinalFunkitUserInfo;
15
15
  isFetchingAssets: boolean;
16
16
  walletAssets: GeneralWalletAssets;
17
17
  startAssetsListener: () => void;
@@ -15,6 +15,9 @@ export interface FunkitUserInfo {
15
15
  accountName: string;
16
16
  accountPicSrc: string;
17
17
  }
18
+ export interface FinalFunkitUserInfo extends FunkitUserInfo {
19
+ globalFunkitUserId: string;
20
+ }
18
21
  export declare const PLACEHOLDER_FUNKIT_USER_INFO: FunkitUserInfo;
19
22
  export declare enum DepositTokenSymbol {
20
23
  USDC = "USDC",
@@ -0,0 +1,3 @@
1
+ export declare const MOONPAY_TOKENS_SUPPORTED_REGIONS: {
2
+ [x: string]: any;
3
+ };
package/dist/index.css CHANGED
@@ -4703,6 +4703,18 @@ input[type=number] {
4703
4703
  color: inputFieldPrimary;
4704
4704
  }
4705
4705
 
4706
+ /* src/components/FunTransactionSummary/FunTransactionSummary.css */
4707
+ .fun-container-content-expanded {
4708
+ transition: max-height 0.6s ease-in-out;
4709
+ max-height: 200px;
4710
+ overflow: hidden;
4711
+ }
4712
+ .fun-container-content-collapsed {
4713
+ max-height: 0px;
4714
+ transition: max-height 0.4s ease-out;
4715
+ overflow: hidden;
4716
+ }
4717
+
4706
4718
  /* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMiB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJvdHRvbTogMDsKICByaWdodDogMDsKfQ== */
4707
4719
  [data-rk] .uwrdc20 {
4708
4720
  position: relative;